Skip to content

Commit

Permalink
Add cross-reference table to .elf.map
Browse files Browse the repository at this point in the history
This allows for more in-depth
understanding of what code
is causing usage of what other
code, helping to track memory
and code usage of final project.
  • Loading branch information
henrygab committed Dec 9, 2024
1 parent 1bb546d commit 5c6dbe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
build/**
build_rp2040/**
build_rp2350/**
build_*/**
.vscode/**
.env

2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ foreach(revision ${revisions})
#pico_set_linker_script(${revision} ${CMAKE_CURRENT_LIST_DIR}/pirate/memmap_default.ld)
endforeach()

string(APPEND CMAKE_EXE_LINKER_FLAGS "-Wl,--print-memory-usage")
string(APPEND CMAKE_EXE_LINKER_FLAGS "-Wl,--cref,--print-memory-usage")


# by default this project uses LGPL3 libraries, if you do not want to comply
Expand Down

0 comments on commit 5c6dbe1

Please sign in to comment.