Trying to understand .hex files obtained after compiling a XC8 MPLAB X project.

Gast #4214337
Lesenswert?
• ▲
▼
Hello guys,

I am wondering about the .hex files generated by this compiler. Normally 
the .hex files present the aspect attachedi in the "File1.hex". It is 
posible to appreciate that the programm is located in the first memory 
positions. However usgin the file1 mplab project, i have added a new 
routing (void estimate_temperature()) which is not calling any 
interruption and anything. It is a mathematical equation: temp = 
tem1*200/100.  I compiled this new project and i generated "file2.hex". 
The it is possible to appreciate that in file2.hex the program starts in 
0x0000 like file1.hex but then it jump to other memory position. My 
question is why this issue is happening, if both project has the same 
linker configuration  and the only difference is the 
estimate_temperature routine? Is there anyway to generate a file2.hex 
like file1.hex?

Thanks.
Angehängte Dateien:

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.