projectNe10 / Ne10

An open optimized software library project for the ARM® Architecture
Other
1.46k stars 408 forks source link

Cross compiling NE10 for bare metal applications #219

Open sheroytata opened 5 years ago

sheroytata commented 5 years ago

I have been trying to cross compile the NE10 library for bare metal.. with arm-none-eabi-*

I noticed a few things. 1) To cross compile for hard float - I had to edit the C make lists file

had to add the -mfloat-abi=${FLOAT_ABI} when I compile for GNULINUX_PLATFORM. Else it would fail with errors as it tries to access the neon registers. As compilation completes I get a few warnings at about 64-65% of the build process. But the build completes successfully.

2) Is there any flag in the library that I can add so that it does not search for malloc and alloc and memcopy? - or Which libraries should I use to run and compile NE10 for bare metal applications?

Could there be inbuilt functions added in the library that are optimized for these applications(such as malloc.. etc...)?

Or how to build with newlib/newlib-nano? I cant seem to link it in my makefile.

Edit - Linking with Newlib-nano done.