Advanced Users can post their questions and comments here for the not so Newbie crowd.

Moderator: eriksl

User avatar
By eriksl
#81783 Did they still have K&R style code inside? Or update to newer ANSI/ISO C versions?
User avatar
By eriksl
#81784 BTW it appears newlibc introduces char array of about 1kbytes called "impure_data". I think it's wasted for non-threaded code. I could only find this text about it: https://newlib.sourceware.narkive.com/l ... mpure-data which suggests we should set
Code: Select all--enable-newlib-reent-small
in the build process. I only didn't find out yet where that could be hacked in, into crosstool-NG.
User avatar
By eriksl
#81785 Also BTW, I disabled the "MMU" option in crosstool-NG for our lx106, because it doesn't have one. I don't think it does matter anything at all, but hey, you never know.

Also I boldly removed -lhal from my linking flags and everything still builds. Looks like the complete HAL code is in ROM and PROVIDEd in (newer?) load scripts. So no need to build it anymore. Anyway, I think very little code will use it.