Skip to main content
Visitor II
May 27, 2013
Question

COSMIC LKF File

  • May 27, 2013
  • 3 replies
  • 874 views
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

    This topic has been closed for replies.

    3 replies

    Visitor II
    May 28, 2013
    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.

    Visitor II
    May 28, 2013
    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

    Visitor II
    May 28, 2013
    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.