Why is it so difficult to copy source code that is not “open source”?

870 views

It’s been in my mind if we are using the software/program or even hardware of a tech company, we can play around, install-unsinstall and more. Then how is it so difficult for someone to “unhide” the source code that the device uses? Technically the code is in the device somewhere hidden in it, so it’s there, but still, it’s almost impossible to obtain the source code. How do they achieve this so no one copies their code?

In: 366

42 Answers

Anonymous 0 Comments

I’m not sure if it’s been mentioned yet, but modern compilers have a lot of tricks they use to make the computer program run faster, so it’s not like one line of C source code will always compile to the same set of machine code (so would be easy to reverse back to the source code), instead there are all kinds of different combinations of complicated machine code that might be generated depending on what the compiler thinks the program is trying to do, so it’s not possible to completely unpick it back to the original source code.

You are viewing 1 out of 42 answers, click here to view all answers.