[fpc-devel] Program too long ?

wkitty42 at windstream.net wkitty42 at windstream.net
Thu Jan 14 18:57:12 CET 2016


On 01/14/2016 11:22 AM, Mark Morgan Lloyd wrote:
> wkitty42 at windstream.net wrote:
>> On 01/13/2016 05:01 PM, Mathias wrote:
>>> I wanted a test following compile 1'000'000x WriteLn.
>
>>> Procedure too
>>> complex, it requires too many registers Fatal: Compilation aborted Error:
>>> /usr/bin/ppcx64 returned an error exitcode
>>
>> wowowow... is there something wrong/bad with a short routine?
>
> OTOH it's very easy to end up with enormous functions- or even an enormous main
> block- if machine-generating source by e.g. macro expansion.

now that you mention it, i do have a machine generated routine in one of my 
apps... it was much easier to write code to generate all of the individual case 
statements for the bit checking than to try to manually write all of them and 
not typo anything...

it started as tri-state for 5 sets of vars and was reduced to bi-state for those 
5 sets after a huge epiphany... we ended up with 1024 case values to check 
instead of something over 18000...

> I've come across some text-processing tools which were built like this...
> typically via antique FORTRAN which lacked functions to get unhappy about
> :-)

O:-)

-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.



More information about the fpc-devel mailing list