r/C_Programming • • Sep 02 '26

Protecting source code from reverse engineering

Hi everyone,
I am looking to provide a compiled version of our physics solver to our customers. I understand there are many obfuscation techniques to protect source code but I am wondering if there are some smarter ways?

We already cloud computing, the issue is we have customers that are in locations without internet/need realtime solving.

0 Upvotes

36 comments sorted by

View all comments

-1

u/Stickhtot Sep 02 '26

Not necessarily smart but I know that setting the optimization levels to the highest would remove symbols in the assembly which would probably make it harder to reverse engineer

0

u/lucasxi Sep 02 '26

Less code makes it easier to reverse engineer, a main component of obfuscation is to bloat the binary with junk to make a reverse engineer waste time.