llvm-mos / llvm-mos-sdk

SDK for developing with the llvm-mos compiler
https://www.llvm-mos.org
Other
266 stars 53 forks source link

Supporting building common libraries per-CPU/platform #225

Open asiekierka opened 11 months ago

asiekierka commented 11 months ago

As SPC700 is not compatible with 6502, this is a blocker for supporting that platform through llvm-mos-sdk in particular. Citing @mysterymath :

We'll eventually need a multilib notion for things like common; it'll probably be some work to build that out. But it's something that is pretty endemic to embedded platforms; you usually end up with a huge array of libc, each taking advantage of different hardware features. LTO helps insulate us from this somewhere, but we can't use it everywhere in the SDK for various reasons.