Questions tagged [assembler]

For questions about installing, configuring and linking assembly language programs in Ubuntu. Questions about assembly language programming are off topic at Ask Ubuntu, and should be asked at Stack Overflow Q&A.

The GNU Assembler (as) is the assembler developed by the GNU Project. It is the default back-end of GCC.

24 questions
31
votes
2 answers

How can I compile & run assembly in Ubuntu 18.04?

So recently I've wanted to learn assembly, so I learnt a bit. I put this into nano and saved it as playground.asm. Now I'm wondering, how do I compile and run it? I've already searched everywhere and still cant find it. I'm really curious and…
Scorch
  • 451
5
votes
0 answers

Assembly Language on Ubuntu

So I was currently studying about assembly language and I came across this awesome command on terminal, gcc -S filename.cpp, that produces the assembly code of a C++ source file. But after I installed NASM and tried to link and compile the .S file…
Fortem
  • 51
3
votes
2 answers

How to install GNU Assembler

I am trying to write a boot-loader, so I need GNU Assembler. I googled it but didn't find any helpful material. How can I install GNU Assembler (and not GNU Compiler)?
3
votes
2 answers

How to use MASM for assembly language on Ubuntu?

How can I run the code of Masm on Ubuntu? I cannot use Windows as a virtual machine and neither can I use Nasm.
Bilal K
  • 31
2
votes
2 answers

How to get disassemble command line?

I'm currently learning ASM programming, and I would like to disassembly a file .c. However after execute the command line set disassembly-flavor test.c I use the command: disassembly test.c and my terminal displayed disassemble: command not…
S7_0
  • 137
2
votes
2 answers

How to run yasm in ubuntu?

I recently have installed YASM but I cannot find any yasm in PC. Also, it was written that it would through terminal. However, I have no idea what it was about.
srijana
  • 29
2
votes
1 answer

gcc -Hello.s Problem

My system is Ubuntu 18.04 64bit . with build-essentials and devtools installed. Hi, I have an assembly file called Hello.s Here is it's content: #This is a simple "Hello World!" program .section .rodata #read only data section str: …
SDIdo
  • 105
1
vote
1 answer

how to install tgcil EST assembler on ubuntu

I downloaded TGICL-2.1.tar.gz file from sourcforge. and I extract the file. Then I want to install TGICL but I don't know how to do. Someone please help me.
Asiye
  • 11
1
vote
1 answer

How do I compile MSDOS 1.1 on Lubuntu 15.04?

I've downloaded the source code of MSDOS 1.1 and 2.0, and want to compile MSDOS 1.1. I don't want to do it with an emulator (like DOSbox). How do I compile MSDOS 1.1 on Lubuntu 15.04?
wb9688
  • 1,477
  • 2
  • 17
  • 30
1
vote
2 answers

Software recommendation for a MASM compiler

I have been looking for a MASM compiler for Ubuntu. I have moved all of my development tools to Ubuntu. Now I'm taking a MASM class, and I need a MASM compiler very badly. I have seen some videos on YouTube. They mostly use a DOS emulator, and they…
1
vote
0 answers

How to Use Assembly to Interact with the Desktop Application Directly

I am trying to learn to make graphical programs with assembly language. I do not want any external libraries. If I have to download something (after already downloading the assembler itself of course) it is an external library. I want to use the…
1
vote
1 answer

Syscall documentation for int80

I am learning x86 assembly and I was wondering if someone could help me understand why the documentation is telling me a completely different thing to what I see in practice? To invoke a system call I use int 80h software interrupt. I put the…
1
vote
2 answers

How to set up and run the code for "stlink" zip file from github in ubuntu 20.04

I am new at Ubuntu (20.04) and assembly programming. What I need to do is to set up the "stlink" stlink-1.6.1-1.x86_64.rpm file and/or Source code.zip file in this github link for release version v1.6.1 ( zip files are at the bottom of the…
esra
  • 113
1
vote
0 answers

Debugging Assembly with DDD

I have a problem when debugging Assembly code with DDD (also tried GDB). When I compile my program and make executable file with gcc -g -o program program.S I need to add -m32 to make 32-bit executable file. But when I open DDD and click "Run" ,…
1
vote
0 answers

Why are the permissions on /usr/bin/x86_64-linux-gnu-as set to 750?

Compiling a simple program in Ubuntu 16.04 with gcc-5.4.0: $ cat tmp.c #include int main() { printf("Hello World"); } Yields the following error when trying to compile as a non-privileged user: $ gcc tmp.c gcc: error trying to exec…
1
2