gnupic: Re: [gnupic] Re: PIC32 C32 GCC Source Code Released


Previous by date: 8 Nov 2007 23:56:20 +0000 Re: PIC32 C32 GCC Source Code Released, John Steele Scott
Next by date: 8 Nov 2007 23:56:20 +0000 Re: [gnupic] Warning [220] : Address exceeds maximum range for this processor, David
Previous in thread:
Next in thread: 8 Nov 2007 23:56:20 +0000 Re: [gnupic] Re: PIC32 C32 GCC Source Code Released, Xiaofan Chen

Subject: Re: [gnupic] Re: PIC32 C32 GCC Source Code Released
From: "Xiaofan Chen" ####@####.####
Date: 8 Nov 2007 23:56:20 +0000
Message-Id: <a276da400711081556w24469145lf10e0c02c4f5b2a7@mail.gmail.com>

On Nov 9, 2007 7:03 AM, John Steele Scott ####@####.#### wrote:
> > Thanks. But then I have to question the legality of Microchip's
> > distributing a code size limit C32 binary since it uses GNU GPLed
> > source codes. I am not a lawyer but this is kind of strange.
> > That is why I asked in the forum in the first place.
> > http://forum.microchip.com/tm.aspx?m=292995
>
> C32 could take the same approach. If there is a pic32 license manager
> program, grep the source to see if GCC ever executes it.

There is no license manager this time.

> The reply James Grosbach gave you in the Microchip forum suggests that the
> size limitation is imposed by the runtime library somehow, but I don't see
> how that would work. On the other hand, I can imagine that the easiest
> place to impose this restriction would be in a linker script.

I am seeking further clarification in that thread.

And I can actually build C32 with newlib but newlib itself failed to be built.
So if someone here can port newlib over, then we have a working C32.

I downloaded the following and extract the source, newlib is there.
http://www.mips.com/products/software-tools/software-tools/mips-sde-lite/

And then I copy the newlib directory to the PIC32 C32 source code
directory and interestingly C32 gcc can be built. newlib failed to be
built. So I think it might need some efforts to port newlib over.

mcuee@ubuntu710:~/Desktop/PIC32/src$
./configure --target=$TARGET --prefix=$PREFIX --without-headers --with-newlib
--with-gnu-as --with-gnu-ld --enable-languages=c

mcuee@ubuntu710:~/Desktop/PIC32/src$
make all-gcc

mcuee@ubuntu710:~/Desktop/PIC32/src$
sudo make install-gcc

mcuee@ubuntu710:~/Desktop/PIC32/src$ ls /opt/pic32mx/bin/
pic32mx-addr2line pic32mx-bin2hex pic32mx-gcc pic32mx-gcov
pic32mx-objcopy pic32mx-readelf pic32mx-strip
pic32mx-ar pic32mx-c++filt pic32mx-gcc-3.4.4 pic32mx-ld
pic32mx-objdump pic32mx-size
pic32mx-as pic32mx-cpp pic32mx-gccbug pic32mx-nm
pic32mx-ranlib pic32mx-strings

mcuee@ubuntu710:~/Desktop/PIC32/src$ pic32mx-gcc --v
Reading specs from /opt/pic32mx/lib/gcc/pic32mx/3.4.4/specs
Configured with: : (reconfigured) ./configure --target=pic32mx
--prefix=/opt/pic32mx --without-headers --with-newlib --with-gnu-as
--with-gnu-ld : (reconfigured) ./configure --target=pic32mx
--prefix=/opt/pic32mx --with-newlib --with-gnu-as --with-gnu-ld :
(reconfigured) ./configure --target=pic32mx --prefix=/opt/pic32mx
--without-headers --with-newlib --with-gnu-as --with-gnu-ld
--enable-languages=c
Thread model: single
gcc version 3.4.4 MPLAB C32 v1.00-20071024

Xiaofan

Previous by date: 8 Nov 2007 23:56:20 +0000 Re: PIC32 C32 GCC Source Code Released, John Steele Scott
Next by date: 8 Nov 2007 23:56:20 +0000 Re: [gnupic] Warning [220] : Address exceeds maximum range for this processor, David
Previous in thread:
Next in thread: 8 Nov 2007 23:56:20 +0000 Re: [gnupic] Re: PIC32 C32 GCC Source Code Released, Xiaofan Chen


Powered by ezmlm-browse 0.20.