public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Andrew Fish <afish@apple.com>
To: "Gao, Liming" <liming.gao@intel.com>
Cc: Paulo Alcantara <paulo@paulo.ac>,
	JUNWEN JIA <jiajunwen123@gmail.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: EDK II debug question
Date: Mon, 22 Jan 2018 08:16:05 -0800	[thread overview]
Message-ID: <C431E738-AFB8-49B1-8B3C-473AA72E048D@apple.com> (raw)
In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1A776C@SHSMSX104.ccr.corp.intel.com>

Also the BaseLib has a lot of C APIs that abstract  a lot of common things you use online assembly for.  Not to mention that how to do inline assembly is not standard in C.
> On Jan 22, 2018, at 7:18 AM, Gao, Liming <liming.gao@intel.com> wrote:
> 
> 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:edk2-devel-bounces@lists.01.org] On Behalf Of Paulo Alcantara
>> Sent: Monday, January 22, 2018 9:20 PM
>> To: JUNWEN JIA <jiajunwen123@gmail.com>; edk2-devel@lists.01.org
>> 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
>> edk2-devel@lists.01.org
>> https://lists.01.org/mailman/listinfo/edk2-devel
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


  reply	other threads:[~2018-01-22 16:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-20  6:58 EDK II debug question JUNWEN JIA
2018-01-22 13:19 ` Paulo Alcantara
2018-01-22 15:18   ` Gao, Liming
2018-01-22 16:16     ` Andrew Fish [this message]
2018-01-24  2:23       ` 答复: " JUNWEN JIA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C431E738-AFB8-49B1-8B3C-473AA72E048D@apple.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox