Question about including binary files
Mike Green
Posts: 23,101
The Propeller Tool and its equivalents allow a file to be included as a file image in a program's DAT area. How would this be done with PropGCC?
Comments
There is the #include directive for text.
The propeller-elf-objdump utility can be used to create a .o for a binary file.
There are examples of this with SimpleIDE in the toggle folder when compiled.
The makefile examples are in the demos/toggle folder and demos/common/common.mk file.
If you want to include it without doing the conversion, you would need to link it into a special section with a linker script and give it a pointer in the code that can access the data.
That said, I haven't looked into exactly how to make that happen.