Task: Fixing the Entry Point 1
Access the directory tasks/entry-fix-1/support/
. We want to track issues with defining the main()
function.
Go to the subdirectory a-c/
. Run the make
command, interpret the encountered error, and resolve it by editing the hello.c
file.
Go to the subdirectory b-asm/
. Run the make
command, interpret the encountered error, and resolve it by editing the hello.asm
file.
Bonus: In the subdirectories c-extra-nolibc/
and d-extra-libc/
, find solutions that do not modify the source code of hello.c
. These solutions instead modify the build system to use a different function, other than main()
, as the program’s entry point.
If you’re having difficulties solving this exercise, go through this reading material.