[Suif-talk] Simple-suif

Carlos Cavanna ccavanna@technologist.com
Tue, 7 Nov 2000 02:24:07 -0400


Hi,

my name is Carlos, and I am taking a course at the University of Toronto
about compilers. We are using the simple-suif interface to implement
optimizing algorithms.

I have the following problem. I am having trouble creating a new instruction
with the simple-suif interface. I am calling new_instr (as documented in
the simple.h header file), I provide the simple_op and simple_type
parameters.

But, I don't know what I should fill in simple_type.suif_type. As the header
file says, this is the internal SUIF representation, but if I leave this
"blank", set a new pointer, or allocate memory for it, Simplesuif gives
me a segmentation fault when I exit the do_proc function (where I am
working).
I have modified the printsimple example, so I know everything is right.

All I need to create is a single LABEL instruction, and place it somewhere
in the code. Does anyone have a piece of working code for this ?

Thank you very much,
Regards,
CC