[quote user="Guillaume Sarrot"]I'm trying to compile code on my MSP430 (F6659) without a RTS library.
I know 99% of people would find it silly, and it is supposedly not to be done, but I'm working in aeronautics and, to put it simply, i'm not legally allowed to use libraries code without mastering it.[/quote][quote user="Guillaume Sarrot"]So i'm trying to find a way to tell the compiler to directly compile my shift / divide, etc. operations into instructions, without inserting calls to external routines (like a compiler is supposed to do, I would say)[/quote]Do have an option to use other devices, or are you forced to use a MSP430 F6659 due to low power / small device requirements?
E.g. if you could use an ARM Cortext based Hercules Safety MCU then:
a) There are hardware instructions for shifts / divides to avoid needing to use a run time library for them.
b) The MCU has built-in self checking features for safety
c) There is a SafeTI™ Compiler Qualification Kit available - but I am not sure if the qualification includes the run time library.
Disclaimer: I don't know what safety standard(s) you need to meet.