C
cr88192
Nickolai Leschov said:They will do for now. But I'm not satisfied with this situation, thank
you.
Programming-wise, I think manufacturer is not very competent. I believe
that manufacturer can produce hardware and software that _works_ for a
price that I'm happy with, but I don't trust them in anything that's
related to programming. I use their library because it provides interface
to their hardware, but I'm not very fond of it.
I'll look at them, thanks.
No, my microcontroller doesn't have an emulation program. Besides,
emulation won't buy me much compared to real debugging. I can use DOS
emulation, but it's of little use plus it's not integrated into IDE.
Debugging through a serial port is also not available, as far as I know.
This is what I wanted to accomplish with Forth.
As far as I know it's OMF object file format. Is OMF loading hard? Who did
it?
loading is not hard, but linking with the running app is a little harder,
due to the amazing forsight of most of the folks writing compilers and
linkers and other tools...
sure, it is not impossible, but there are certainly easier things to do...
actually, I didn't think of it in the other thread, but it may be possible
to make this a lot easier, since you know the specific lib up front, you can
figure out what all external dependencies it has, and possibly make a table
mapping any symbols it needs to appropriate pointers. then when resolving
these symbols, fetching them from the table.
eg:
char *func_names[]={"malloc", "free", ..., NULL};
void FAR *func_ptrs[]={&malloc, &free, ..., NULL};
this is probably the simplest option.