First draft with newlib integration