Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

scatter file

what is scatter file? what is its advantage?
Kindly tell, i do not anything about these.

Thanks
Sukhdeep Singh

Parents
  • Remember: the so-called "C Preprocessor" actually knows nothing about the 'C' language or syntax - it is really just a text file processor.

    Not so.

    The preprocessing phases of a C compiler do know quite a but about C syntax. The preprocessor parses character and string literals, integers and float constants, and it knows enough about identifiers and operators to notice that it should macro-expand only one instance of "E2" to 2E0 in the following snippet:

    #define E2 2E0
    0xA0E2+1.5E2+MILE2+E2_2+E2+sizeof('E2')+strlen("E2")
    

    That goes well beyond "just a text file processor".

Reply
  • Remember: the so-called "C Preprocessor" actually knows nothing about the 'C' language or syntax - it is really just a text file processor.

    Not so.

    The preprocessing phases of a C compiler do know quite a but about C syntax. The preprocessor parses character and string literals, integers and float constants, and it knows enough about identifiers and operators to notice that it should macro-expand only one instance of "E2" to 2E0 in the following snippet:

    #define E2 2E0
    0xA0E2+1.5E2+MILE2+E2_2+E2+sizeof('E2')+strlen("E2")
    

    That goes well beyond "just a text file processor".

Children
No data