[fpc-devel] Re. z370 Cross Compilation, Pass 2 of ....

Florian Klämpfl florian at freepascal.org
Sun Sep 1 20:10:17 CEST 2013


Am 01.09.2013 19:53, schrieb Bernd Oppolzer:
> Am 01.09.2013 18:01, schrieb Florian Klämpfl:
>> Am 01.09.2013 16:55, schrieb Bernd Oppolzer:
>>> No need to answer to that ... I understood in the meantime that FPC does
>>> NOT rely on
>>> PUSH and POP instructions. Instead the linear assembler representation
>>> is already fully
>>> CPU specific.
>>>
>>> (which makes porting a bigger effort)
>> Proof?
>>
> It's my opinion.
> If the compiler translates the source language
> to machine code for an abstract target machine that is not too complicated
> (but well suited to the needs of the source language), you only have to
> translate
> the operations of this abstract machine one by one to your real target
> machine,
> which seems to me to be an easier task.

You miss an important point: an intermediate abstract assembler form
exists, but it is never generated explicitly. Please study first the
compiler sources before making statements as above. E.g. the sparc
specific part of the compiler is approx. 7700 lines only.



More information about the fpc-devel mailing list