We help IT Professionals succeed at work.

Why does .map file have _variable names and not just variable names?

naseeam
naseeam asked
on
52 Views
Last Modified: 2020-05-07
In embedded software, why does the .map file have _variable names and not just variable names?  A particular variable name in code doesn't start with underscore.   Then, why does this variable start with an underscore in .map file?
Comment
Watch Question

Data Warehouse / Database Architect
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
>> To avoid name conflicts
In embedded 'c' language source code, variable foo is defined.  In Executable and Linking Format(ELF) formatted .map file it's _foo or __foo.  What conflict is there?  Why not foo in .map file?

Author

Commented:
@Kent
I understand your answer.

Author

Commented:
Thank you!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.