This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

other/10210: Provide better support for mixing att and intel syntax assembler


>Number:         10210
>Category:       other
>Synopsis:       Provide better support for mixing att and intel syntax assembler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 25 16:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Benjamin Kalytta <bkausbk at web dot de>
>Release:        ALL (GAS-GNU ASSEMBLER)
>Organization:
>Environment:
ALL
>Description:
There should be better support for mixing ATT and INTEL syntax assembler code.
My suggestiuon would be to introduce new gnu assembler keywords:

.syntax=[intel,att] [reg-prefix,...]
.push [syntax,reg-prefix...]
.pop [syntax,reg-prefix...]

Example:

.push syntax,reg-prefix
.syntax=intel reg-prefix
    mov %eax,dword ptr [someptr]
.syntax=att
    movl ($someptr),eax
.pop syntax,reg-prefix
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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