Yvan Castilloux wrote:
Hi all,
I would like to know how to create a library of type .dll in windows and
then link it into a project with msp430-gcc.
A Windows .dll file is compiled to x86 code. Clearly, that cannot work
on an MSP430. You must use msp430-gcc to compile the code. If you mean
that you want to build a dynamic library with msp430-gcc, we don't
support position independent code so dynamic libraries cannot be built.
Dynamic libraries really aren't useful in small MCUs, so I don't
consider that a loss.
I don't want to use msp430-ar since anybody can see the C code variables and
recreate the C code. When calling msp430-gcc, I believe I have to set
linker options with -Wl.
The contents of a .dll file is almost the same as a .a file. Variable
names are only visible to the extent you make them visible.
I would like to create a static library.
msp430-ar creates static libraries. If you compile without the -g option
there isn't much useful information in ones of those to help someone
reverse engineer your code.
Does anybody have a solution?
It sounds like you don't fully understand the problem.
Steve