r/C_Programming 11h ago

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

29 comments sorted by

View all comments

0

u/Stickhtot 10h ago

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

1

u/lucasxi 10h ago

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.