Skip to content
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

compile with -flto ? #10

Open
fenugrec opened this issue Jun 10, 2022 · 1 comment
Open

compile with -flto ? #10

fenugrec opened this issue Jun 10, 2022 · 1 comment

Comments

@fenugrec
Copy link
Owner

Needs testing. Would save 3-400 bytes.

Current:
   text    data     bss     dec     hex filename
   3972       0    1740    5712    1650 npk_SH7051
   4088       0    2104    6192    1830 npk_SH7055_35
   3548       0    2100    5648    1610 npk_SH7055_18
   3548       0    2100    5648    1610 npk_SH7058
   3516       0    2100    5616    15f0 ssmk_SH7058


With -flto :
   text    data     bss     dec     hex filename                                                                       
   3660       0    1736    5396    1514 npk_SH7051                                                                     
   3716       0    2100    5816    16b8 npk_SH7055_35   
   3216       0    2096    5312    14c0 npk_SH7055_18                                                                  
   3216       0    2096    5312    14c0 npk_SH7058                                                                     
   3176       0    2096    5272    1498 ssmk_SH7058                                                                    
@fenugrec
Copy link
Owner Author

Quick test on 2y967 (sh7051) and 6z68a (7058) work fine so far :

  • connect
  • dumpmem (ROM)
  • flrom practice mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant