Menu

CDF file - How to manage in Preferences Editor and what is in the CDF.

Help
Anobium
2023-09-16
2024-02-17
  • Anobium

    Anobium - 2023-09-16

    CDF file - How to manage in Preferences Editor and what is in the CDF.

    A short video showing using the Preferences Editor to manage the production of the Constants&Configuration Definition File (CDF).

    Build 1283, or later, exposes the CDF management in the Preferences Editor.


    YouTube URL:


    The CDF provide insights into how the compiler creates and manages Constants, which Scripts are creating and managing Constants, and how Conditional Compilation is executing specific segments of your program and the libraries.

    The information provided is:

    CODE/Constant - constants defined in a user program or library
    SCRIPT/AddConstant constants defined in a #script/#endscript construct
    SCRIPT/CurrentValue - constants already defined then redefined in another #script/#endscript construct
    CHECKSYSVARDEF - expansion of a mutli-condition conditional test.

    The remainder of CDF report is the user program or libaries code remaining post conditional processing.

     
  • Anobium

    Anobium - 2024-02-17

    Bit of an update to the CDF.

    The CDF report now shows ALL constants, I had an email explaining that not all constants were being shown.

    CDF Report

    HELP:
    CODE/Constant - constants defined in a user program or library
    SCRIPT/AddConstant constants defined in a #script/#endscript construct
    SCRIPT/CurrentValue - constants already defined then redefined in another #script/#endscript construct
    FINAL/CONSTANT - final constants defined
    CHECKSYSVARDEF - expansion of a mutli-condition conditional test.
    Remainder of report us the user program or libaries code remaining post conditional processing

    I have added the FINAL/CONSTANT section. It is the list of the final state of all constants. The start of the section is show below:

    This section also shows which constants are real strings. Which means if you use them they are defined as strings in your program.

      FINAL/CONSTANT :31K                                                   0.031
      FINAL/CONSTANT :ACK                                                   255
      FINAL/CONSTANT :ADC0                                                  0
      FINAL/CONSTANT :ADC1                                                  1
      FINAL/CONSTANT :ADC10                                                 10
      FINAL/CONSTANT :ADC11                                                 11
      FINAL/CONSTANT :ADC12                                                 12
        .....
      FINAL/CONSTANT :CHIPNAMESTR                                           "18F16Q20"    ;STRING86;
      FINAL/CONSTANT :CHIPOSC                                               HFINTOSC_1MHZ
      FINAL/CONSTANT :CHIPPINS                                              20
      FINAL/CONSTANT :CHIPPROGRAMMERNAMESTR                                 "18F16Q20"    ;STRING87;
       .....
    

    This should help understand the value of constants.

    Enjoy

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.