The MASM Forum

Projects => Easy Code IDE 32/64-bit => Topic started by: AssemblyChallenge on January 10, 2018, 01:32:10 AM

Title: Asmc compiler.
Post by: AssemblyChallenge on January 10, 2018, 01:32:10 AM
This compiler looks great and several days ago I was trying to give it a go.

So, I went to Nidud's page on GitHub, downloaded the latest version (2.27E right now) and uncompressed Asmc, just like you would do with regular Masm32. Then, I created a new Console Project with Asmc as compiler and changed the Paths so EC could find it, and here is when some details showed off:

- The new project has the normal references to Kernel32.inc and User32.inc... but those belong to Masm32 -I'm guessing- and can't be found on "\asmc\include". Not sure if this is normal or Asmc works in some mixed mode along Masm.

- Idem with Libs, as there are none but a bunch of *.def files. On Nidud's forum it says Asmc is ready to work "out of the box" but those Def files let me thinking that maybe they must be compiled before actually using them. So far I couldn't find a pre-compiled Asmc package, just like the ones you posted on the Tool's section of EC's website.

Am I doing something wrong please?

Thank you.

PD: Also tried to use Asmc's make and included makefiles but only got errors  :dazzled:
Title: Re: Asmc compiler.
Post by: HSE on January 10, 2018, 03:00:03 AM
Hi Challenge!

I'm using AsmC exactly like ml. Just masm32SDK includes, libraries and bats.

Regards
Title: Re: Asmc compiler.
Post by: AssemblyChallenge on January 10, 2018, 05:54:04 AM
Quote from: HSE on January 10, 2018, 03:00:03 AM
Hi Challenge!

I'm using AsmC exactly like ml. Just masm32SDK includes, libraries and bats.

Regards

So, it is not a pure Asmc compiling environment but a mixed one with Masm? Meaning asmc.exe and linkw.exe vs the Masm32 Includes and Libs? As a descendant of Jwasm I though it was a different beast altogether :shock:
Title: Re: Asmc compiler.
Post by: jj2007 on January 10, 2018, 06:59:30 AM
You can use AsmC, and UAsm btw, as if they were ML.exe - they are perfect MASM clones. On very rare occasions, you might see differences, but that concerns mainly macros (and there are workarounds).
Title: Re: Asmc compiler.
Post by: HSE on January 10, 2018, 07:09:46 AM
JWASM and HJWASM also work perfectly with Masm32 and link or polink. Just they have some collision with some old macros that I use a lot, and it's a little boring to recompile every new version. AsmC allow to disable that collision and allow long lines by default. :t

JJ was faster :biggrin:

Title: Re: Asmc compiler.
Post by: AssemblyChallenge on January 10, 2018, 07:27:47 AM
Thank you both.

At least is compiling now but the Building part is failing with:

"Error! E2154: cannot execute cvpack.exe : No such file or directory"

Right now, as noted above, I have asmc.exe and linkw.exe as compiler/linker. Not sure what else to change as cvpack error is new: I never had it with Masm.
Title: Re: Asmc compiler.
Post by: HSE on January 10, 2018, 11:11:58 AM
What source code?   :biggrin:
Title: Re: Asmc compiler.
Post by: AssemblyChallenge on January 10, 2018, 02:47:42 PM
Quote from: HSE on January 10, 2018, 11:11:58 AM
What source code?   :biggrin:

A very simple console program:


.Const

.Data?

.Data

hInst HINSTANCE NULL

Info1 DB "Test message", 13, 10, 0

.Code

start:
Invoke GetModuleHandle, NULL
Mov hInst, Eax

Invoke StdOut, Addr Info1

Invoke ExitProcess, 0
End start
Title: Re: Asmc compiler.
Post by: rsala on January 10, 2018, 08:47:22 PM
What resource compiler are you using? Please use rc.exe (in \masm32\bin). The command line for rc.exe is /X /L<lang> $.
Title: Re: Asmc compiler.
Post by: AssemblyChallenge on January 11, 2018, 05:29:52 AM
Quote from: rsala on January 10, 2018, 08:47:22 PM
What resource compiler are you using? Please use rc.exe (in \masm32\bin). The command line for rc.exe is /X /L<lang> $.

The Project's properties are set as:

- Compiler: \asmc\bin\asmc.exe
- Linker: \asmc\bin\linkw.exe
- Resource Compiler: \masm32\bin\rc.exe

And the RC Command Line option (I never touch any of those):

- /X /L<lang> $
Title: Re: Asmc compiler.
Post by: rsala on January 11, 2018, 09:09:24 AM
I attach the ConsoleAsmC project that compiles and builds fine in my Win7-64.
Title: Re: Asmc compiler.
Post by: AssemblyChallenge on January 12, 2018, 12:36:32 AM
Still no dice :(

Your project is good but it has unticked the "Add symbolic information" and that option is the one triggering the cvpack.exe error. As the tools options don't go along with the project, I attached an image of how they look in my PC. Could you please compare it with yours and/or tell me which one is wrong? I'm pretty sure that's the root of my problems.

Thank you.
Title: Re: Asmc compiler.
Post by: rsala on January 12, 2018, 05:30:32 AM
Well, that's right. I thought the cvpack.exe file was included with the ASMC package. To solve the problem please download the JWASM package at:

http://easycode.cat/English/Download/JWasm.zip

After unzip it, take the the cvpack.exe file and copy it ito the "\AsmC\bin" folder (where the asmc.exe is ).
:t
Title: Re: Asmc compiler.
Post by: AssemblyChallenge on January 12, 2018, 07:01:05 AM
Finally :greenclp:

That was the missing piece in the puzzle, now is working. Already gave the hint to Nidud about it.

Thank you. :icon_mrgreen:
Title: Re: Asmc compiler.
Post by: rsala on January 12, 2018, 06:02:03 PM
Yes, I think Nidud should include this file in the AsmC pack.
:biggrin: