cancel
Showing results for 
Search instead for 
Did you mean: 

COSMIC LKF File

balmukund66
Associate II
Posted on May 27, 2013 at 11:48

Hi All,

I want to execute some command in .lkf file for COSMIC Compiler condionally.

is it possible??

Pseudo code is as below:

/*--------------------------*/

#ifdef TRUE

obj\libisl.sm8

#else

obj\libis0.sm8

#endif

/*--------------------------*/

Thanks

Balmukund Prasad

3 REPLIES 3
luca239955_stm1_st
Senior II
Posted on May 28, 2013 at 08:44

Hi,

no, it is not possible.

Strange question though: what did you want to do with that?

Regards.

balmukund66
Associate II
Posted on May 28, 2013 at 10:55

Hi Luca,

Thanks for confirmation.

Actually i wanted to change memory model dynamically based on some MACRO.

Thanks & Regards

Balmukund Prasad

luca239955_stm1_st
Senior II
Posted on May 28, 2013 at 16:08

For that I would suggest you use a makefile/batch/script (depending on your OS and your preferences) that, depending on the memory model chosen

- calls the compiler with the proper command line

- use different linker files for every memory model

Regards.