Is it possible to include calculations in config.bib? RRS feed

  • Question

  • Hi,

    Let's suppose I have defined some variables in config.bib:

    #define    NK_SIZE    0x04000000 ;image size

    #define    V_RAM_OFFSET   0x80000000; beginning of virtual ram

    #define   LOAD_ADDR   0x01000000; Physical address of the image

    Is it possible to perform some arithmetic operations on these variables? eg to have something like this:


      NK        $(V_RAM_OFFSET)+$(LOAD_ADDR)             $(NK_SIZE)   RAMIMAGE



    Tuesday, November 8, 2011 12:13 PM

All replies

  • I suspect that your own testing has already shown that calculations are not supported.   If not, test it and let us know.
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG

    Eurotech Inc.
    Tuesday, November 8, 2011 3:00 PM
  • Yes, I have tested it. I just thought that I was doing it wrong so there could be a way how it can be acomplished. if there is no such a possibility then thanks for clarifying it.
    Tuesday, November 8, 2011 3:05 PM