ассемблер linux x86 на llvm ассемблер - PullRequest
0 голосов
/ 27 декабря 2018

Я пытаюсь перевести ассемблер linux x86 на ассемблер llvm.

На самом деле, я не получаю никакого ассемблера, возможно ли перевести или декомпилировать ассемблер GNU на ассемблер llvm?

Если есть, что это за инструмент?

или вам нужно декомпилировать и собрать с помощью clang?

----------- os_Linux_x86.s в NSPR:

// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// 
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

// PRInt32 _PR_x86_AtomicIncrement(PRInt32 *val)
//
// Atomically increment the integer pointed to by 'val' and return
// the result of the increment.
//
    .text
    .globl _PR_x86_AtomicIncrement
    .align 4
_PR_x86_AtomicIncrement:
    movl 4(%esp), %ecx
    movl $1, %eax
    lock
    xaddl %eax, (%ecx)
    incl %eax
    ret

......
...