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


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

Re: 16-bit i386 code support in GAS


> 
> (Sorry if this isn't the right place to ask this question;
> I couldn't find any better address in the GAS documentation...)
> 
> How difficult would it be to add a feature to the i386 version
> of GAS to allow it to generate 16-bit i386 code?  It seems like
> it should be a trivial change - just add a directive that inverts
> the decision of whether or not to add size prefixes to each
> instruction, right?  Such a feature would make it possible to
> avoid the icky old inverted-syntax, non-cross-compiling as86 and
> ld86 programs for writing boot-related code in Mach (Hurd/Lites)
> and Linux.
> 
> So, could someone either add this feature, or point me to the
> right parts of gas-i386 so I can do it myself, or tell me why
> it isn't so simple?
> 

Please take a look at my CC field.

-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com