On 5/3/07, Rob Wehrli <[EMAIL PROTECTED]> wrote:
> On Mon, 30 Apr 2007 03:23:23 -0400, <[EMAIL PROTECTED]> wrote:
>
>
> >   /*
> >    * Linear memory description for lgdt and lidt instructions.
> > - * The compiler tries to put l_addr on a long boundary, so you
> > - * must use &l.limit as the argument to lgdt() and friends.
> >    */
> >   struct desc_p {
> > -       u_short pad;
> >          u_short limit;
> >          u_long base;
> >   } __attribute__ ((packed));
> >
>
> I'm just wondering if this creates a dependency on GCC within Prex?
> Compilers who do not understand the directive may make compilation under
> different compilers/toolchains more difficult.

__attribute__(()) wasn't added by the patch ;)

You can write a macro to effectively remove this directive when using
an alternate compiler. There is some info in the gcc help on this, but
this does the trick:

#define __attribute__()

There would be a bit more work required to use an alternate compiler,
but this only makes sense to me if you are using a processor not
supported by gcc.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Prex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/prex-devel

Reply via email to