How to use fopen and fwrite to work with files in Arm DS-5 like in Nios II ?


I'm using Arm DS-5 Eclipse with the Arm Compiler 6 Toolchain. In NIOS II, it is allowed to open files using fopen function to access the device list and it works because the NIOS II Eclispe uses the Newlib C library. However, in Arm DS-5, the Newlib C library is not built in yet, so my question is how to get the fopen function called to the device list. Do I have to add the Newlib C library to the workspace or I have to write my own alternative functions ??