Skip to content

Suggestion: An option to detect JMPs replaceable with BR

Thanks for the compiler, I know that's a lot of work.

I have a suffestion: to have an option, if turned on the compiler will check if JMPs doing a jump within a small radius, so it could be replaced with BR command, and produce a warning for each of the JMPs. That will help to make a simple optimization step, replase such JMPs with BR to spped up a bit and save one word of memory.

Thanks!

Edited by nzeemin
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information