pmcc -crt0 -o b4101 a4001.s myprog.cWhere a4001.s contains the correct startup code from the CPU you plan to use. a4001 will work for the 4001, 4003, or 4101.
Note that if your application makes any calls to perform I/O eg. printf, you will need to provide to correct low-level routines to initialize and interface with the I/O peripheral you are using.