openrisc / orpsoc-cores

Core description files for FuseSoC
123 stars 78 forks source link

File I/O Support for ORPSoC #80

Closed psrawke closed 9 years ago

psrawke commented 9 years ago

Does ORPSoC support file I/O operations? Also, can we write code in c++ instead of c as there are many libraries available for data types like lists, matrix in c++?

jeremybennett commented 9 years ago

The OpenRISC tool chain has had full C++ support for both bare metal and Linux applications since GCC 4.5.

File I/O is a property of your hardware implementation. What FPGA board are you using. I believe they all have at least UART support. Some I believe may have SD card support.

olofk commented 9 years ago

Hi,

ORPSoC is just the hardware platform. If the hardware has somewhere to store files (for example an SD card as Jeremy suggested), then there are no problems. Even if you don't have any non-volatile storage on the board, you can use file operations against the RAM or against a network mounted disk if you have an ethernet connection.

olofk commented 9 years ago

Closing this since the question was answered and there were no follow-up questions