C to NASM-code?

From: Erik Larsson (spamtrap_at_crayne.org)
Date: 11/01/04


Date: Mon, 1 Nov 2004 19:04:14 +0000 (UTC)

Hey people..
Being a lazy person, I don't feel that I want to write all of my code in
assembler, so I wonder... is there any C-compiler out there that compiles to
assembler code with NASM syntax? That would make life so much easier for me,
because then I could write some routines in C, compile them down to
NASM-code, and optimize by hand before using it in my existing
NASM-programs.
I know many compilers can compile down to asm-code, but the syntax of for
instance the assembler code that GCC generates is... weird to me.
  Erik



Relevant Pages

  • Re: C to NASM-code?
    ... Erik Larsson wrote: ... > assembler code with NASM syntax? ... > because then I could write some routines in C, compile them down to ... The only compiler I've ever actually used that'll output Nasm syntax is ...
    (comp.lang.asm.x86)
  • Re: ///Re: NASM problem
    ... in the RosAsm stantard macros are what I would call real significant and very useful. ... arithmetic at compile time isn't important. ... Seeing the ease of using Herberts dissembler, and how easy it was to compile a com.file with it, I have no doubt he could create just as good an assembler as RosAsm, if he only could see what it would mean. ... these small little details you give up the power of assembly over HLLs. ...
    (alt.lang.asm)
  • Re: from elsewhere, an assembler
    ... note that often duplicating opcodes with different names leads to inflation ... my current assembler can't figure it out). ... Compile in memory? ... moved to listing files, but at present this is not needed (could make sense, ...
    (alt.lang.asm)
  • Re: 32 bit FORTH ??? Different tack!
    ... that has the words you need to do simple arithmetic and compile words ... you need an assembly-or-C routine that you can put onto the new system ... cross-compiler is mostly that you use a different assembler (or ... If you wanted to port Pygmy to a different processor, ...
    (comp.lang.forth)
  • Need help here.
    ... Iam trying to install hla and masm32 as given in Randall Hyde's book ... 'art of assembly windows version' but i cant get it right. ... HLA (High Level Assembler - FASM back end, ... -sm Compile to MASM source files only. ...
    (comp.lang.asm.x86)