Relative Content

Tag Archive for clinuxassemblygccx86

Assembly error when compiling C code with ASM instructions

I’m new to assembly language programming and I’m having a problem with a C program that incorporates assembly instructions (ASM) to reverse a string. The code works without errors on my Debian virtual machine (running on VirtualBox), with Windows 11 as the host OS. However, some of my colleagues are getting assembly errors when compiling it on their virtual machines. When I compile it using gcc -Wall -g program.c -o program on my machine, I don’t find any errors, but they do: