[M3devel] more cm3cg on Raspberry Pi

Jay K jay.krell at cornell.edu
Thu Oct 24 09:45:59 CEST 2013


Stock FSF gcc 4.7.0 does not appear to have armhf support.
Maybe 4.7.3 or 4.8 or 4.9.
Debian patches gcc extensively, though mostly in irrelevant ways.
 And Apple patches gcc, also mostly irrelevantly.  
 And Interix has patches for gcc, also mostly irrelevant.  
 And OpenBSD maintains gcc patches, also mostly irrelevant.   
 But these do contribute to me not liking the cm3cg backend. 
 cc is the interface to the patched/supported compiler. Alas. 


 With some random hacking on it, I get to: 


pi at raspberrypi ~/cm3-boot-ARM_LINUX-d5.9.0-20131024 $ ./cm3


Fatal Error: unable to locate configuration file, "cm3.cfg"


pi at raspberrypi ~/cm3-boot-ARM_LINUX-d5.9.0-20131024 $ file cm3
cm3: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x94ee12b113014741789e53db9c9ae8c0a0b24461, not stripped



Which is what is expected at that point.
Is that progress or you had already done that?


Can you
  - free up some space maybe 
  - apt-get install cvs maybe 


I guess I should learn to use rsync and/or scp in some sort of sync mode.


Thanks,
 - Jay

----------------------------------------
> From: jay.krell at cornell.edu
> Date: Wed, 23 Oct 2013 08:35:37 -0700
> To: mika at async.caltech.edu
> CC: m3devel at elegosoft.com; jay.krell at cornell.edu
> Subject: Re: [M3devel] more cm3cg on Raspberry Pi
>
> Let's maybe backup and build a working gcc? And, "apt get source" on the rpi and compare to stock FSF gcc 4.7.x? And/or give me ssh access?
>
> I haven't compared cm3cg with C wrt performance.
>
> - Jay
>
> On Oct 22, 2013, at 9:47 AM, <mika at async.caltech.edu> wrote:
>
>>
>> One more thing ...
>>
>> from
>>
>> https://wiki.debian.org/ArmHardFloatPort/VfpComparison
>>
>> "The combination of -mfpu=vfp and -mfloat-abi=hard is not available in FSF GCC 4.4, but the CodeSourcery 2009q1 compiler (and later, current release is 2010q1) supports it as does FSF GCC 4.5."
>>
>> but the way cm3cg is compiled it says:
>>
>> root at raspberrypi:/big/home/mika# /usr/local/cm3/bin/cm3cg -version
>> Modula-3 backend (GCC) version 4.7.1 (armv6l-unknown-linux-gnueabihf)
>> compiled by GNU C version 4.6.3, GGC heuristics: --param ggc-min-expand=59 --param ggc-min-heapsize=56092
>> Modula-3 backend (GCC) version 4.7.1 (armv6l-unknown-linux-gnueabihf)
>> compiled by GNU C version 4.6.3, GGC heuristics: --param ggc-min-expand=59 --param ggc-min-heapsize=56092
>> options passed:
>>
>> Hmm... so it should support the combination? But:
>>
>> root at raspberrypi:/big/home/mika# /usr/local/cm3/bin/cm3cg -mfpu=vfp -mfloat-abi=hard
>> cm3cg: sorry, unimplemented: -mfloat-abi=hard and VFP
>>
>> Execution times (seconds)
>> TOTAL : 0.00 0.00 0.02 0 kB
>>
>> Mika 		 	   		  


More information about the M3devel mailing list