The code
INSTALLING A 64-BIT Pi OS
QUICK TIP
THE C CALLING CONVENTION
Get it from linuxformat. com/archives and on the DVD
If you don’t already have a 64-bit OS on your Pi then follow the following procedure to install 64-bit Ubuntu. Go to www.raspberrypi. org/downloads and install the appropriate version of the Raspberry Pi Imager on your desktop computer and install Ubuntu 64-bit Desktop. You don’t need a desktop OS if you just want to edit, compile and run assembly language programs, but if you just have the server OS, you’ll have to use scp to copy the files on to the server.
The command gcc -S hello.c will produce the assembly language program hello.S. (.S and .asm are both file extensions used for assembly source code.)