This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Excluding parts of the instruction set during compilation
- From: Fabian Oboril <fabian dot oboril at kit dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 13 Feb 2014 11:21:39 +0100
- Subject: Excluding parts of the instruction set during compilation
- Authentication-results: sourceware.org; auth=none
Hello everybody,
I am currently working on a project for which I need to compile C-code
using only a small subset of the available instruction set. So for
example, instead of using add, addi, addiu and addu, I would like that
the compiler is using just one of them. Is there a way, that this can be
handled with gcc, for example by giving a list of not-to-use
instructions at compile time?
Can anyone help?