I'm writing library files for the ARM. I noticed that if you include an assembly file which contains several functions, and you only use one of those functions (called in the C file) the compiler still links the entire assembly file, which is unnecessary. Is there any command that could prevent this,without spilting each function of the assembly file into different files? Thanks!
Dunno about the ARM tools, but that is the way the 8051 Librarian works. You need to check your Documentation - the 8051 Librarian Manuals specifically state that routines must be in separate files if they need to be independently linked. In the 8051 case, it makes no difference whether the source is assembly or 'C'.
You're probably right, it could be the same for both, guess I'll just have to split it up which is a bit of a pain! Thanks all the same
"You're probably right" You should confirm it in the Manual though...