IAR question

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi there,

 

During the customer-supplier agreement of a new project the customer need to have the IAR project of the microcontroller.  According to the same agreement the customer must be able to change the contents of ONLY ONE .c file with the applycation basic scenario and ONLY ONE .h file that includes all the applycation parameters. In any case the customer need to have the whole project but he need to have access ONLY in ONE .c file and ONE .h file without can viwe the contents of all the other files (at least .c files) of the whole IAR project.

 

Is there any way to do this using IAR C Compiler ?

 

 

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

Last Edited: Fri. Feb 26, 2016 - 12:59 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Surely you build the rest as a static library and then just give him a "project" with the one .c, one .h and one .lib (or .a or whatever IAR calls them). The project then compiles the .c (which in turn #include's the .h) and then the linker joins the object of that to the .a/.lib with the rest of your code.

 

This technique would be the same whatever compiler was involved - not just IAR.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In other words the customer wants all of the source code. S/he does not want a mix of source and pre-compiled code. This could be a problem if you intend to use someone else's compiled libraries that are not supplied with source code.

Ross McKenzie ValuSoft Melbourne Australia