Compiling a unit is not essentially different from compiling a program. The difference is mainly that the linker isn't called in this case.
To compile a unit in the file foo.pp, just type :
ppc386 fooRecall the remark about file extensions in the previous section.
When all went well, you will be left with 2 (two) unit files:
Remark: Under LINUX, a unit source file must have a lowercase filename. Since Pascal is case independent, you can specify the names of units in the uses clause in either case. To get a unique filename, the Free Pascal compiler changes the name of the unit to all lowercase when looking for unit files.
The compiler produces lowercase files, so your unit will be found, even if your source file has uppercase letters in it. Only when the compiler tries to recompile the unit, it will not find your source because of the uppercase letters.