CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

MPLAB X IDE v6.20: #import() directive added to LST file

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kgng97ccs



Joined: 02 Apr 2022
Posts: 104

View user's profile Send private message

MPLAB X IDE v6.20: #import() directive added to LST file
PostPosted: Sat Sep 05, 2026 3:59 am     Reply with quote

We compiled the same source code under MPLAB X IDE v6.00 and v6.20 with the CCS C compiler v5.115. The MCU is the PIC18LF47K40.

The HEX files show differences in many places.

The LST files show differences in the assembly code in many places, and the LST file for v6.20 has this extra directive that is not in the original main.c file:
#import(file="build/default/production/main.o")

The main.o file does appear in the folder “build/default/production/”.

This #import directive appears as the first line after some initial assembly code, and immediately after this directive is the main.c code.

Why is this happening, and will the two different HEX files operate the same way on the MCU?

Also, is there any way to configure v6.20 or the CCS C compiler to not add that directive, and is there any advantage in doing so?
Ttelmah



Joined: 11 Mar 2010
Posts: 20126

View user's profile Send private message

PostPosted: Sat Sep 05, 2026 10:44 pm     Reply with quote

You need to ask in an MPLAB forum.
However look carefully at how the project is configured. It sounds as if
the version referring to the .o, is configured to generate an object file,
rather than single pass compilation. Also check that the files are in
the same locations in the two projects.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group