[fpc-devel] "Blank slate" next version of FPC

Michael Schnell MSchnell at lumino.de
Mon Feb 25 10:06:03 CET 2019


> The compiler already supports keeping records in registers under the same
> conditions, but only up to a certain size (two native registers) and only using the
> same layout as they would have in memory (so no explicit splitting out fields
> into separate registers). 

Using record fields as independent variables if appropriate could be a nice very high-level optimization strategy (AFAIK, GNU C does this easily). With X64 architecture and others that have many registers this seems to make a lot of sense, but it also would allow to allocate seldom used fields ion the stack. 

-Michael






More information about the fpc-devel mailing list