Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-120121-

Compiling C to MIPS

Name: Anonymous 2009-05-17 22:04

Does anyone know how to compile C to MIPS? I've tried changing the target with gcc but I get this error:

# gcc --target=mips sort.c -o sort.s
cc1: warning: command line option "-ftarget=mips" is valid for Java but not for C

Any ideas?

Name: Anonymous 2009-05-17 22:16

Wolfram|Alpha isn't sure what to do with your input.

Name: Anonymous 2009-05-17 22:32

i686-apple-darwin9-gcc-4.0.1: sort.c: No such file or directory
i686-apple-darwin9-gcc-4.0.1: no input files
    << Exit status: 1 >>

Name: Anonymous 2009-05-17 23:03

Recompile gcc with the appropriate options.

Name: Anonymous 2009-05-17 23:24

>>4

How would I go about doing that?

Name: Anonymous 2009-05-18 0:45

>>5
google: MIPS toolchain

Name: Anonymous 2009-05-18 1:30

Rewrite it in Java, duh.

Name: Anonymous 2009-05-18 5:45

Use the motherfucking google before asking.

Name: Anonymous 2009-05-19 0:51

I did use the motherfucking google, faggot.

Name: Anonymous 2009-05-19 6:20

[spoiler]Use MONO

Name: Anonymous 2009-05-19 6:29

>>10
Now you have two problems

Name: Anonymous 2009-05-19 6:31

>>11
Now you have three problems

Name: Anonymous 2009-05-19 6:33

>>12
Now you have four problems

Name: Anonymous 2009-05-19 7:02

>>13
Now you have n problems

Name: Anonymous 2009-05-19 7:33

>>14
Now you have 1039 problems

Name: Anonymous 2009-05-19 9:48

>>15
Now you have mental problems

Name: Anonymous 2009-05-20 8:39

>>15
Now you have inf problems.

Name: Anonymous 2009-05-20 8:57

>>17
Now you have [m]NaN[m] problems

Name: Anonymous 2009-05-20 9:47

>>18
Now you have bbcode problems.
Please do not try to be funny.

Name: Anonymous 2009-08-16 22:18

Lain.

Name: Anonymous 2009-08-16 22:47

Build a toolchain (libc, compiler, linker) for mips (or mipsel; these are different).  Compile libs.  Compile your program.
Jesus fucking Christ, even I who had never done any serious system programming and certainly nothing embedded know that.
Use fucking Google, moron.

Name: Anonymous 2009-08-17 5:35

>>10
U MENA MOON

Name: Anonymous 2013-07-05 7:10

I would have used GCC, but GNU mentions Andrea Dworkin in their official documentation:
http://www.gnu.org/software/emacs/manual/html_node/gnus/Virtual-Groups.html
Thus, unfortunately, it is immoral to use any GNU products.

Name: functionalhaskelllisp 2013-07-05 17:49

Why aren't you compiling from c++, c is old fashioned and only used by people scared of learning.

Don't change these.
Name: Email:
Entire Thread Thread List