Question about String Reversal in C Code: Why does the string appear reversed at the end?
I have this C code where I am trying to reverse a string using inline assembly. However, I am curious to know how the reversed string is displayed at the end and if there is any relation to the lack of outputs declared in the constraints.
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: