-5

I want to know if there are ways to compile C, C++ and Python code in order to not be able to reverse engineering it over Linux or not?

I have heard there are some ways over Windows to do it, but I am working on Linux.

I want to compile my code securely, as released or final version.

UPDATE

At least I want to make it hard for usual users to disassemble,

I am using GCC for C and GPP for C++, also I would be thankful if you introduce me best compiler for Python.

MLSC
  • 5,872
  • 8
  • 55
  • 89

1 Answers1

2

I want to know if there are ways to compile c, c++ and python code in order to not be able to reverse engineering it over Linux or not?

You could always obfuscate the code, but know this: A dedicated reverse engineer can not be stopped. As someone else once said on this site: You can't protect your code technologically, only legally.

I want to compile my c, c++ and python code securely... as released or final version...

Well, as far as python is concerned, you could always ship the software as an executable created by an exe packager such as py2exe or freeze. Refer to this question.

also I would be thankful if you introduce me best compiler for Python

In the Python world, you aren't talking about a compiler, rather, about a specific implementation. Most people use the reference cpython implementation. There are also alternatives such as pypy or jython, but they are not dedicated compilers, rather, full blown virtual machines.

Community
  • 1
  • 1
NlightNFotis
  • 9,559
  • 5
  • 43
  • 66
  • Is there any switches in gcc for c and c++ or some tricks? I did search bot not found – MLSC Feb 24 '14 at 10:01
  • 1
    @MortezaLSC Well, you might want to use something like `-O2`. Please refer [to this site](http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html) for all the available optimizations in gcc. – NlightNFotis Feb 24 '14 at 10:03
  • Thank you very much,At least I want to make it hard for usual users to disassemble, – MLSC Feb 24 '14 at 10:09
  • @MortezaLSC If you found that this answers your question, consider to mark it as the accepted answer, so that the question gets closed. – NlightNFotis Feb 24 '14 at 10:11
  • Ok,,I want to do some searches and let other guys to help...Then surely I will accept :) – MLSC Feb 24 '14 at 10:12
  • I am really thankful...your answer and comment is really helpful to me...very good – MLSC Feb 24 '14 at 10:20
  • @MortezaLSC, people can still answer if you accept one. If there is a better answer, you can (and should) choose again. Not that there's any hurry to accept :) – eerorika Feb 24 '14 at 10:23
  • Thanks again...any other answers are welcome as well – MLSC Feb 24 '14 at 10:26