You need to write the separate assembly file. Edk2 prefres to use nasm assembly for IA32 and X64 arch.
> -----Original Message----- > From: edk2-devel [mailto:[email protected]] On Behalf Of Paulo > Alcantara > Sent: Monday, January 22, 2018 9:20 PM > To: JUNWEN JIA <[email protected]>; [email protected] > Subject: Re: [edk2] EDK II debug question > > On 1/20/2018 4:58 AM, JUNWEN JIA wrote: > > > > Hi: > > Could you please tell how to build assembly language using EDK2? > > I tried to create a .c file in AppPkg, but it goes like this: > > #include<BaseLib.h> > > Void main() > > { > > _asm{} > > } > > I used X64 to compile this project, but it seems content like _asm{} is not > > supported. > > Do I need to add extra files? And where should I add them? > > AFAIK, inline assembly is not supported in X64 MSFT compiler. > > Paulo > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

