Author Topic: do you know any open source C compiler for mips, in addition to gcc ?  (Read 15737 times)

0 Members and 1 Guest are viewing this topic.

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
hi guys
i know and use gcc for mips but i do not like it at all, i guess if an other open source C compiler is existing in addition to gcc.
do you know any ?

i used SDCC for tiny 8 bit machine, such as intel 8051 core, especially dal semi 80C390/80C400, and it is great! Also its sources are well written. I HATE the GNU complexity about design and sources, so let me know.

my target is a SoftCore MIPS1 (R3000 compliant)
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #1 on: August 01, 2014, 05:46:09 pm »
actually i'm not aware of any other usable open source compilers than the GCC family and SDCC ;)

btw.. what's wrong with GCC ?
 

Offline gxti

  • Frequent Contributor
  • **
  • Posts: 507
  • Country: us
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #2 on: August 01, 2014, 06:22:26 pm »
It looks like Clang LLVM might have some MIPS support.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #3 on: August 01, 2014, 06:31:28 pm »
I HATE the GNU complexity about design and sources

What complexity? GCC's codebase itself is positively huge, sure - but it's complex to use?
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #4 on: August 01, 2014, 08:54:46 pm »
well.... i would suggest to BUY yourself a commercial compiler for MIPS then...

if GCC is such a crap , then stop using open source software , because the vast majority of the open source software is compiled with GCC.

or probably you should write your own compiler if you're such an expert and you know it better how to write compilers.

 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #5 on: August 01, 2014, 09:31:07 pm »
Most of your gripes seem to be related to building and developing for GCC. Don't you just want to use it?
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #6 on: August 02, 2014, 10:11:07 am »
consuming and bitching about the quality -> that's suitable for commercial products.

consuming, improving, sharing the improvements -> that's open-source

if you know how to improve it, then share your ideas with the worlds, or eventually propose a patch/fix. bitching at some open source product will not help you.
 

Offline snoopy

  • Frequent Contributor
  • **
  • Posts: 767
  • Country: au
    • Analog Precision
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #7 on: August 02, 2014, 01:44:09 pm »
i guess if somebody has already written a C compiler for mips-only, this design (targeting to a RISC machine only, instead of abstracting things) should result easier to be implemented and supported than the elephants in GCC

Isn't the latest PIC32 micros based on the MIPS 5000 core ?

cheers
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #8 on: August 02, 2014, 01:53:42 pm »
gcc is also a pain in the ass to be compiled, as the fact practically people use a precompiled gcc packages, gcc under gentoo is … critical

Then pay for professional support.

Let's see, who owns MIPS now?
Ah, Imagination Tech.

What do they recommend as tools, where should you deliver your money to?
Aha, http://www.imgtec.com/tools/mips-tools/ points to Mentor Sourcery.

What is Mentor Sourcery based on?
Ups, GNU GCC.

So here you have it. Don't want to mess with your own GNU compiler build? Pay Mentor to do it for you.

By the way GCC was always THE MIPS compiler. Even when MIPS was still an own company they did recommended GCC, maintained the MIPS part of GCC, and even delivered an own build, then called SDE. In other words, whatever you think about GCC, it is unlikely you get a better MIPS compiler than it.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #9 on: August 02, 2014, 02:38:02 pm »
Interesting, You are the first person in the programming field I have heard of having these issues.  I did get some info from between the rants, I'll ask some past colleagues still working about them if I get the chance.  Just because I find this interesting.   
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #10 on: August 02, 2014, 02:39:02 pm »
We got the point. The universe owes you  a compiler for your liking.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #11 on: August 02, 2014, 02:43:39 pm »
If I were having a whole bunch of show-stopping problems with a well-established piece of software that's generally liked, I'd start to consider a PEBCAK.

Hmm... if only other compilers were as "shitty" as GCC. *frowns at Microchip's xc8*
« Last Edit: August 02, 2014, 02:46:54 pm by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #12 on: August 02, 2014, 02:45:39 pm »
Microsoft have a mips C/C++ compiler as part of their suite of "Compilers for Smart Devices"
http://msdn.microsoft.com/en-us/library/bb187718(v=vs.80).aspx

I have no idea how shit it is ::)
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #13 on: August 02, 2014, 03:06:18 pm »
If I were having a whole bunch of show-stopping problems with a well-established piece of software that's generally liked, I'd start to consider a PEBCAK.
Only a couple of billion devices (including set-top boxes with MIPS processors) run software compiled with GCC so GCC must be shit  |O
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #14 on: August 02, 2014, 03:07:36 pm »
Isn't the latest PIC32 micros based on the MIPS 5000 core ?
PIC32MX uses the M4K core, PIC32MZ uses M14K (or "microAptiv").

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #15 on: August 02, 2014, 03:23:33 pm »
Quote
do you know any open source C compiler for mips, in addition to gcc ?

I would suggest that you focus on finding a compiler that works for you, be it open source or otherwise.

Unless philosophical arguments are more important to you.
================================
https://dannyelectronics.wordpress.com/
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #16 on: August 02, 2014, 04:06:36 pm »
Lets see. You decided to use a MIPS soft core. Now you have great pains finding a compiler that suits your royal highness. Wouldn't the choice of a MIPS softcore count as a self inflicting wound? A Court Martial offense in some circles ...
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline bwat

  • Frequent Contributor
  • **
  • Posts: 278
  • Country: se
    • My website
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #17 on: August 02, 2014, 06:17:06 pm »
You decided to use a MIPS soft core.

I didn't want to be the one to bring this up but since you did, there are parallels between his VHDL processor model and his compiler:
i) both were free,
ii) both don't seem to work right, and
iii) he needs other people to fix them.
"Who said that you should improve programming skills only at the workplace? Is the workplace even suitable for cultural improvement of any kind?" - Christophe Thibaut

"People who are really serious about software should make their own hardware." - Alan Kay
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #18 on: August 02, 2014, 06:23:39 pm »
... I'd start to consider a PEBCAK.

First time I hear this term. I like it ;-)
 

Online bingo600

  • Super Contributor
  • ***
  • Posts: 1989
  • Country: dk
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #19 on: August 02, 2014, 09:49:57 pm »
Normally i would not bother.....
But this is to much ...
 @op but a commercial compiler  , and stop whining aboout gcc.

Have fun if ever building Linux on a non gcc  tc

/Bingo

Ohh and latest isn't greatest on mipsel
« Last Edit: August 02, 2014, 09:52:24 pm by bingo600 »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #20 on: August 02, 2014, 10:07:56 pm »
Have fun if ever building Linux on a non gcc  tc

my Atlas board was developed by MIPS Inc. around linux 2.4 and in their "companion CD" it comes supported by an old version of gcc (it may be 2.95, i don't remember), what is surprising my is that in an ideal wonderland the kernel is written in C, and C should be portable by its definition, so i fuss why the hell on a modern linux distro, which comes with gcc-4.5 i can't recompile the kernel linux 2.4, which was compiled with an old (GNU)-c compiler, with a modern (GNU)-c-compiler. Probably because GCC is so "pretty" that is incompatible with itself  :palm:
« Last Edit: August 02, 2014, 11:02:55 pm by legacy »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #21 on: August 02, 2014, 10:20:33 pm »
Wouldn't the choice of a MIPS softcore count as a self inflicting wound?

in short, i have a commercial C compiler that is excellent and i am very happy with it, unfortunately it requires a license and it runs on a SGI workstation, so my problem is supporting other people (i mean who wants to collaborate to the SoftCore project), for example i can't ask a guy to buy an SGI workstation and installing IRIX (which means paying for a flex license of MIPS/PRO) in order to help me about the development.
« Last Edit: August 02, 2014, 10:58:29 pm by legacy »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #22 on: August 02, 2014, 10:29:04 pm »
@bwat
to be honest was not interested about speaking about gcc, how it is shit, and other things, i was simply asking if someone has read/seen/used an alternative C compiler for MIPS, people here seems to use only gcc so i'd better look alternatives by myself.
« Last Edit: August 02, 2014, 10:55:37 pm by legacy »
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #23 on: August 02, 2014, 10:42:20 pm »
... GNU is so shit that is incompatible with itself !

Ok, got it, you are a troll, and I I failed for it. Good job.
« Last Edit: August 02, 2014, 10:44:25 pm by zapta »
 

Offline WarSim

  • Frequent Contributor
  • **
  • Posts: 514
Re: do you know any open source C compiler for mips, in addition to gcc ?
« Reply #24 on: August 02, 2014, 10:59:44 pm »

i) both were free,

my Softcore is not OpenSource, you can collaborate and getting sources for your personal use but you are not allowed to put anything on the web

ii) both don't seem to work right, and

yeah, it is not working for the 100% of its ISA, also it has 17 bugs in its list, with a real fixage of 10, 10/17 fixed in the last month, that also means i did, and i am doing, deeply tests and validation, there a lot of SoftCores in the web which are claiming to be working when nobody has really tested and validated them, you should appreciate that i do not tell bullshit to people!

iii) he needs other people to fix them.

I have simply asked things and advices on this forum, asking guys if they want to collaborate. What's wrong with that ?


And about this thread: i am asking if someone has read/seen/used an alternative C compiler for MIPS.

Thank you for this response.  Now I know never to listen to you ever again.  A rant is not a request for advice.  Now I am convinced that your out of scope and misuse of terms are not a language barrier, you just love to hear yourself rant. 

And to answer one of you issues.  Yes there are several compilers that can be retargeted to MIPS, so go look for them. 

I am not waisting any more of my time nor my friends time on you so I will thank you not to try to ask anything more from me. 

Goodbye
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf