Hi all,
I have a problem where I am using a math library that creates a code explosion when compiled with O0.
So I would like to define a few files which have their own optimization level.
What would be the easiest way to do this in ChibiOS?
Thanks!
Compiling different files with different flags? Topic is solved
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Compiling different files with different flags?
Hi,
1) Compile your library into a library using a separate makefile.
2) Import the library in ChibiOS makefile.
Giovanni
1) Compile your library into a library using a separate makefile.
2) Import the library in ChibiOS makefile.
Giovanni
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times