[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
an optimization
Hi,
A recent thread in comp.compilers brought up the idea of compiling
RECORDS's into simple scalar variable.
This brings more opportunities for optimizations. eg: record elements can
be assigned to registers, potentially more dead-code can be found, etc...
Such an optimization should probably only be used when the RECORD as a whole
isnt needed (eg: its on the stack and isnt passed as a VAR parameter. record
assignment and nesting also needs thinking about)
It is my understanding that support for complex numbers in ooc is done
somewhat like this- Michael has mentioned that the backend will only see the
complex broken up into reals.
Perhaps it'd be worth considering implementing this optimization more
generally.
Guy.
--
just for the record, this post definitely doesnt mean
I'm for complex support in ooc ;-)