On Wed, 16 Feb 2005, Jeff Garzik wrote:
My question: do people think its better to generate this intermediate language from the high-level tree (a la compile-i386), or the lower-level linearized basic blocks?
Please use the linearized blocks. It currently may lose some type
information, but that should be easy to fix (you'd just have to add a
"ctype" to each "struct instruction", something I've been considering anyway instead of the current "size" field).
Yeah, I need the full type info, in order to properly align things on the stack, and in order to implement automatic and static initializers, among other things.
I also need to make the target runtime-switchable (x86 vs. x86-64 vs. big endian sparc64), if it's not already.
The linearized format should pretty much _be_ a high-level IL already in many ways, and then you have the option of doing CSE or not on it as you please..
Since the linearized format is an SSA-like form, that makes a few things in the backend easier.
Jeff
- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
