Skip to content

Thoughts on memory usage reduction #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DrXiao opened this issue May 18, 2025 · 0 comments
Open

Thoughts on memory usage reduction #205

DrXiao opened this issue May 18, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@DrXiao
Copy link
Collaborator

DrXiao commented May 18, 2025

When submitting the pull request (#203 ), I used my beaglebone black (running Debian OS) to build shecc targeting armv7.

However, I found that the current memory usage is too high to build the stage 2 compiler on my beaglebone black.

debian@BeagleBone:~/shecc$ make
env printf "ARCH=arm" > .session.mk
Target machine code switch to arm
Warning: missing packages: dot jq
Warning: Please check package installation
  CC+LD out/inliner
  GEN   out/libc.inc
  CC    out/src/main.o
  LD    out/shecc
  SHECC out/shecc-stage1.elf
  SHECC out/shecc-stage2.elf
[ 1830.930466] Out of memory: Killed process 1995 (shecc-stage1.el) total-vm:1875560kB, anon-rss:429492kB, file-rss:148kB, shmem-rss:0kB, UID:1000 pgtables:1832kB oom_score_adj:0
make: *** [Makefile:115: out/shecc-stage2.elf] Killed

It would be better to reduce the memory usage so that the build process can complete even on low-memory ARM machines.

@DrXiao DrXiao added the enhancement New feature or request label May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants