[fpc-devel] Questions regarding pushing more onto assembler

Daniël Mantione daniel.mantione at freepascal.org
Thu Sep 15 10:46:36 CEST 2005



Op Thu, 15 Sep 2005, schreef paul at codecompiler.com:

> I have some questions regarding porting of FPC to another machine type. 
> One of the things I am considering doing is the "pushing" of more of the
> code processing onto the assembler, and whether this might be a better
> idea, or if it was thought about and rejected for some reasons and it
> might be worth noting if it was thought about.
> 
> For example, I am thinking that code such as
> 
>                if  xray = 5 then
>                     do_something
>                else
>                     do_something_else;

The compiler already does use such a structure, i.e. the highlevel 
(node) code generator calls routines in the backend codegenerator which 
output the actual assembler instructions.

If you would output a macro instead of the indivudual instructions you 
would get what you describe. The current approach is at least as flexible 
though, so I see little benefit.

Daniël


More information about the fpc-devel mailing list