On 01.09.2016 03:28, Karoly Balogh (Charlie/SGR) wrote:
90% of the same as for the LLVM backend applies.
I suppose inline ASM should be no problem with the GNU compile infrastructure. With the typical "embedded" cross compiling, all high language code is compiled to their ASM dialect and converted to binary by AS.

Inline ASM just bypasses the high language to ASM step (i.e. replaces it by a very simple "compiler" that handles labels like "1:" (accesses by a notation like "1f" or "1b") and some % - notation for accessing registers.

Of course th GNU inline assembler syntax is completely different (and very versatile and rather hard to understand in detail -> in/out parameters, "clobbers", memory barriers...) than the ASM inline syntax used in fpc.

-Michael

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to