Questions tagged [assembler]
22 questions
29
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
- 431
- 1
- 7
- 13
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
- 6
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)?
user3699039
- 39
- 1
- 4
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
- 1
- 1
- 5
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
- 1
- 1
- 3
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
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
- 1
- 10
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
- 2
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,417
- 1
- 17
- 29
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…
itsdarrylnorris
- 151
- 1
- 5
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…
TacoBlayno
- 11
- 3
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…
Strelok
- 31
- 5
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" ,…
straus012
- 11
- 3
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…
irritable_phd_syndrome
- 111
- 3
1
vote
0 answers
Where to find asm/unistd.h
When trying to build jonesforth, which is a 32-bit GNU Assembler program, on Ubuntu 18.10 64-bit, I get the following message:
~/src/jonesforth $ make
gcc -m32 -nostdlib -static -o jonesforth jonesforth.S
jonesforth.S:1154:10: fatal error:…
dharmatech
- 2,543
- 3
- 19
- 12