This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Any way to include a binary file?

Does anyone know of a way to do the equivalent of this, in C51 V5.50?

#include "myfile.bin"

Where the file isn't source code text but a binary such as a Windows bitmap.
It would need to be located at an absolute eprom address, too.

Any suggestions are appreciated!

Parents
  • The C language does not support any such thing. Thus, C51 does not either. You can dump the info into a C array and then put it in a C file. The tell the linker where in code space to locate this C array.

    - Mark

Reply
  • The C language does not support any such thing. Thus, C51 does not either. You can dump the info into a C array and then put it in a C file. The tell the linker where in code space to locate this C array.

    - Mark

Children
No data