Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

The assembler is not NASM nor MASM, so what's it?

–3 votes
asked Jul 22, 2020 by H.C. Chen (120 points)

To the example code, I only change '%eax' to '1234' and it failed!! So what's the assembler? it's not NASM, it's not MASM. I need to know what's it so as to find its document to know about the syntax. Thank you very much. 

My code

# Welcome to GDB Online.

# GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,

# C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.

# Code, Compile, Run and Debug online from anywhere in world.



.global main


# your code goes here

xor %eax, 1234



The error message

Segmentation fault                                                                                                                                   
...Program finished with exit code 139                                                                                                               
Press ENTER to exit console.      

1 Answer

0 votes
answered Jul 22, 2020 by Peter Minarik (15,580 points)
selected Jul 22, 2020 by H.C. Chen
Best answer

I do not do assembly programming, but I'd assume it's the GNU Assembler you're after.

commented Jul 22, 2020 by H.C. Chen (120 points)
100% correct. Because I tried the example on that Wikipedia page and it worked.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.