<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><br></span></div><div>  A previous google search did show up someone modifying GCC to add that level of CC info for another architecture so I'm sure it is something that we can do for x86.  I don't know how complex it would be either.  I was hoping it was already done and it was just a matter of a compiler flag.  I guess one more research task for me :-)</div><div><br></div>Regards,<br>Roger<br><br>  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Eric Pouech <eric.pouech@orange.fr><br> <b><span style="font-weight: bold;">To:</span></b> Roger Cruz <roger_r_cruz@yahoo.com>
 <br><b><span style="font-weight: bold;">Cc:</span></b> Wine Devel <wine-devel@winehq.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, June 6, 2012 8:12 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Wine's support for reporting calling conventions<br> </font> </div> <br>
dwarf4 allows each compiler vendor to add its own range of CC values<br>in the DW_AT_calling_convention field. this means that the vendor must<br>create its own table for mapping each used CC to a given value.<br>from a wine standpoint, the list should be rather small (stdcall,<br>fastcall...) (on top of cdecl of course) (assuming old 16bit code is<br>out of the game)<br><br>AFAIK, gcc only uses those extensions for very dedicated usage (pascal<br>compiler...). I don't see any reason why one couldn't extend gcc to do<br>it, but I cannot tell how complex it will be (and if plugins provide<br>the relevant interface to do so).<br>HTH<br>A+<br><br>2012/6/6, Roger Cruz <<a ymailto="mailto:roger_r_cruz@yahoo.com" href="mailto:roger_r_cruz@yahoo.com">roger_r_cruz@yahoo.com</a>>:<br>> Hi Eric,<br>><br>> Thanks for replying.  I saw that in the DWARF spec and I was afraid that<br>> DWARF may not provide detailed Info. But I also read in the
 spec that the<br>> compilers use a DWARF extension feature to convey additional info such as<br>> calling convention for each routine.  Is there a way to coax GCC to output<br>> that information?  Maybe thru a target plugin?<br><br>-- <br>Eric Pouech<br><br><br> </div> </div>  </div></body></html>