Welcome to my stream. hope u don't drown.

wrote a square function (on the right) and a function to test it, which exits with status code 0 if tests pass and 1 otherwise. Learnt about .extern.

to generate an executable out of these, you need to provide both object files to linker

ld -m elf_i386 square.o square_test.o -o main
Hosted on streams.place.