
NASM vs GAS vs MASM vs FASM: Which x86 Assembler to Use
Choose an x86 assembler by platform, syntax, macro power and output formats. A decision table compares NASM, GNU as, MASM and FASM, with when not to pick each.
Tag
445 posts

Choose an x86 assembler by platform, syntax, macro power and output formats. A decision table compares NASM, GNU as, MASM and FASM, with when not to pick each.

Negative Zephyr thread priorities are cooperative and never preempted, while zero and above are preemptible. Learn the ranges, the rules and when to use each.

Check every system call result in C: the -1 convention, short reads and writes, EINTR retries and close errors, with working helpers for Linux and glibc 2.41.

Follow a Cortex-M core from power-on to main: the two vector table words it fetches, the reset handler, and the C runtime setup that runs before your code.

Create an OpenGL 3.3 core window and context with SDL 3.2 in C, load functions with glad, handle the quit event, and clear the screen each frame.

Build and load a design for a Lattice ECP5 board such as the ULX3S with synth_ecp5, nextpnr-ecp5, ecppack and openFPGALoader, with an LPF constraint file.

Type 1 hypervisors run on bare metal and type 2 run inside a host OS. See the real differences, where KVM falls, and which one fits your work.

One byte too few for the terminating NUL is enough to corrupt memory. See the common off-by-one patterns in C strings and how to write them correctly.

Learn what registers, the ALU and the control unit do inside a CPU, with a small C model of an 8-bit ALU and its status flags that you can read line by line.

Write, run and debug your first GStreamer pipeline with gst-launch-1.0: sources, converters, sinks, properties, caps filters and the -v and -e flags.

Switch a socket to non-blocking mode with fcntl and O_NONBLOCK, or set it atomically with SOCK_NONBLOCK and accept4, and learn the flag mistakes that bite.

Start threads with pthread_create, wait for them with pthread_join and check the error codes correctly. Includes a complete C program and the mistakes to avoid.