Remix.run Logo
slashdave 4 hours ago

I'm... confused. Don't we use macro assemblers anymore?

sureglymop 4 hours ago | parent | next [-]

We do. I always use fasmg and it's amazing!!

sylware 4 hours ago | parent [-]

fasmg[12] is much more powerful than gas or nasm(~yasm): it is not a classic pre-processor. With CALM, it is basically a language able to implement assemblers supporting various binary file formats.

sylware 4 hours ago | parent | prev [-]

The pre-processor of an assembler is specific to that very assembler.

For instance, with a C pre-processor, I have a very lean C pre-processor dialect which allows me to assemble simple x86_64 code with... fasmg[12] or nasm(probably yasm) or gas(intel syntax).

A big project which was bitten by specific pre-processor abuse: ffmpeg with nasm (but it is still much less toxic than to start to be hard dependent on advanced and specific C compiler extensions... look a the failure from linux on that matter).