Seva Alekseyev
Seva Alekseyev

Reputation: 61378

AT&T to Intel assembly converter

I'm looking for a converter from AT&T-style x86 assembly to Intel-style assembly.

The Att2Intl is a DOS executable, and won't run on 64-bit Windows.

The Gas2masm is sorely incomplete - it chokes on comments, on .ascii, on numerous legitimate commands like leave or movs, clobbers some identifiers...

Any others out there? The target assembler has to be a Microsoft one, there's no way to switch syntax.

EDIT: about 400,000 lines. Not a one time deal, need a not too often but repeatable process. But I won't have to debug it. :)

Upvotes: 4

Views: 4851

Answers (1)

sraboy
sraboy

Reputation: 963

There's a not-quite-complete Perl script here that might help you out if you're up for making some modifications/extensions to anything missing: http://boinc.berkeley.edu/android-boinc/libssl/crypto/perlasm/x86_64-xlate.pl

If not, just run Att2Intl in DOSBox or a WinXP VM. If you don't have access to XP, you could also try installing ReactOS in a VM. I believe they used DOSBox source to implement the DOS layer so that may provide a long-term solution without having to resort to actually running DOSBox every time.

Upvotes: 2

Related Questions