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

INCLUDING OBJECT FILES IN LINK

Hi All,

I have 3 source files: file1.c, file2.c and file3.c and 1 header file config.h.

When I built entire uvision project, 3 object files got generated. file1.obj, file2.obj, file3.obj.

Now I re-build the project & generate hex by changing variables in the config.h header file.

My queries:

1. Can I use these object files and config.h file somehow to generate hex files?
I mean without using the source files in building.

This is because, I don't want to give the source files to my client except the object files and config.h file, so that client can load them in uvsion project & generate different hex files by changing the config.h file.

Regards,
Raj S.

Parents
  • If the project contains object files or libraries (containers of one or more object files), they will be linked into the final binary.

    If the project contains source files, they will be assembled or compiled to produce object files that will be then linked into the final project.

    So have you experimented with using object files in the project? Or with creating a library?

Reply
  • If the project contains object files or libraries (containers of one or more object files), they will be linked into the final binary.

    If the project contains source files, they will be assembled or compiled to produce object files that will be then linked into the final project.

    So have you experimented with using object files in the project? Or with creating a library?

Children