[fpc-devel] Adding a redcode assembler to Free Pascal Compiler

Sven Barth pascaldragon at googlemail.com
Tue Apr 5 11:00:18 CEST 2011


Am 05.04.2011 09:38, schrieb Michael Schnell:
> On 04/05/2011 02:21 AM, Skybuck Flying wrote:
>> So it would be cool if free pascal compiler could compile pascal
>> sources into redcode assembly, which can then be further compiled by
>> the PMARS executable/assembler.
> AFAIK, other than gcc, FP is designed to drop the ASM source code step
> of code generation and is intended to directly output a linkable binary.
> An internal linker is optionally usable in some archs as well, making FP
> directly output an executable

FPC does generate ASM. You can see it by adding the option "-al", if I 
remember correctly. There is just one difference: unlike GCC FPC 
contains an internal assembler for i386 (and maybe x86_64 as well). 
Other targets like arm need an external assembler binary.

Regards,
Sven



More information about the fpc-devel mailing list