Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 02, 2023, 11:22:27 11:22


Login with username, password and session length


Pages: [1]
Print
Author Topic: XC8 memory tool analyser  (Read 797 times)
0 Members and 1 Guest are viewing this topic.
pascal06
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 6
-Receive: 12


« on: March 16, 2023, 10:48:18 10:48 »

Hello everybody,

I would want to analyse memory usage on a particular C code compiled with XC8.
Generally, some would analyse BSS, text and data segment.
There are tools for that (at least I know two):
https://github.com/govind-mukundan/MapViewer
https://www.sikorskiy.net/info/prj/amap/
No chances, theses are working only with GCC, that seems to be not the case with XC8.
Do you know or use this kind of tools ?
My goal is to optimise my program.

Thanks a lot in advance,
Pascal
Logged
danymogh
Junior Member
**
 Warned
Offline Offline

Posts: 38

Thank You
-Given: 14
-Receive: 24


« Reply #1 on: March 16, 2023, 02:26:51 14:26 »

XC8 already produces flash and memory usage. you just need to tell the compiler to generate map files.
then open it with a text editor and you'll see all variables and functions along with their address and size.
it's not a pretty output like the tools you mentioned but it'll do for most jobs.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC