<br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Querying<br>
--------<br>
<br>
The attributes are attached to the function. It's therefore trivial to access<br>
the attributes within the middle- and the back-ends. Here's an example of how<br>
attributes are queried:<br></blockquote><div><br></div><div>Just had a thought, what about compile options that change alignment/layout/section placement of globals etc? For example the -G <num> option in gcc that the mips guys will want to support some day (there are probably better options but this was the first the came to mind).</div>
<div><br></div><div>"-G num</div><div>Put definitions of externally-visible data in a small data section if that data is no bigger than num bytes. GCC can then access the data more efficiently; see -mgpopt for details."</div>
<div><br></div><div>So we'll probably want to put attributes on all top level entities and not just functions.</div><div><br></div><div>-eric</div></div></div>