
Cross-Compile a C Program With the Yocto SDK Environment Script
Install a Yocto SDK, source its environment script, and cross-compile a C program with the CC variable it sets, then check the result before running it.
Tag
445 posts

Install a Yocto SDK, source its environment script, and cross-compile a C program with the CC variable it sets, then check the result before running it.

A 1975 processor with 56 instructions still teaches what every modern CPU builds on: flags, addressing modes, the stack, memory-mapped I/O and interrupts.

A superloop is fine until timing, blocking calls and feature count collide. See the signs that bare-metal firmware needs an RTOS and when it still does not.

Decide who frees every heap block in C by naming owners and borrowers, marking transfers in function contracts, and following a few conventions that stop leaks.

See how an I2C address byte is built, what ACK and NACK mean at each byte, why a slave holds SCL low, and how to avoid the 7-bit versus 8-bit mix-up.

Write a minimal High Level Assembler program that prints a console message, then assemble it with ASMA90, link-edit it with the binder and run it as a job step.

False sharing makes threads that write different variables slow each other down because they share a cache line. See it in a four-thread C counter.

A sysroot is a directory that stands in for the target's root filesystem at build time. See what it holds, how GCC uses it, and how to confirm it is used.

Real-time means a bounded, predictable response to an event, not raw speed. Learn what determinism, deadlines and jitter mean and how an RTOS guarantees them.

Build a program that reads any number of integers from input, using malloc, calloc, realloc and free the right way, with the checks that prevent crashes.

Turn on the Raspberry Pi I2C and SPI buses with dtparam lines in config.txt or raspi-config, confirm the device nodes appear, and change bus speeds.

Route job output to the JES2 spool with SYSOUT=* and a class, set MSGCLASS for the job log, control message volume with MSGLEVEL and read the SDSF datasets.