This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Code Gen problem calling functions through pointers.


Hi all,

Thanks Art and Dave for your responses.

Yes, Art, you were right. It was late last night (no excuse really) and I 
didn't notice the '#' symbol in front of the constant that was loaded into 
the register - I just assumed it was loading it from that address rather 
than immediately. You were also correct about the examples being in error - 
the examples I gave were an interpretation of my results which was meant to 
simplify the problem - but my brain had a bug during translation! I added 
the extra dereference and it now works!

Dave, I like your suggestion but have the following problem. Some of the 
functions I call through vectors have different parameters and return 
types. Also I believe that the compiler will still type check a function 
correctly as long as the cast specifies the correct parameter and return 
types.

Thanks,
David Williams.
DLC Software P/L
Email:davidwilliams@ozemail.com.au
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]