lekernel changed the topic of #m-labs to: Mixxeo, Migen, MiSoC & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
felix__ has joined #m-labs
felix_ has quit [Ping timeout: 245 seconds]
felix__ is now known as felix_
sb0 has joined #m-labs
sb0_ has joined #m-labs
sb0 has quit [Ping timeout: 246 seconds]
nicksydney has quit [Remote host closed the connection]
Gurty has quit [Ping timeout: 240 seconds]
Gurty has joined #m-labs
<FabM> Hi sb0_ what do you think about my patches for apf27 and apf51 ?
nicksydney has joined #m-labs
FabM has quit [Ping timeout: 260 seconds]
FabM has joined #m-labs
_florent_ has joined #m-labs
nicksydney has quit [Remote host closed the connection]
nicksydney has joined #m-labs
nicksydney has quit [Remote host closed the connection]
nicksydney has joined #m-labs
<sb0_> FabM: I merged them
<FabM> thanks sb0_
sb0_ has quit [Quit: Page closed]
_florent_ has quit [Ping timeout: 246 seconds]
nicksydney has quit [Remote host closed the connection]
ar has left #m-labs [#m-labs]
LoneTech has quit [Ping timeout: 245 seconds]
thunderbolt_ has joined #m-labs
<thunderbolt_> Hello there, is someone familiar with programming the LM32?
thunderbolt_ has quit [Quit: Page closed]
thunderbolt_ has joined #m-labs
<ysionneau> thunderbolt_: hello
<ysionneau> I am familiar with LM32
<ysionneau> please ask your questions, a lot of people here are quite knowledgable about lm32
<thunderbolt_> Okay thanks.
<thunderbolt_> I'm writing a C++ program for LM32 - I'm not a noob - and I experience something really strange
* ysionneau is quite a C++ noob
<ysionneau> and I don't like it
<thunderbolt_> It works quite well until i start using virtual methods
<ysionneau> which GCC are you using ?
<thunderbolt_> well it is more comfortable then C
<ysionneau> I mean, which G++*
<thunderbolt_> ...the one shipped with Lattice Mico System for Diamond 3.2 (most recent)... stand by for version number...
<ysionneau> wow
<ysionneau> can you please do gcc --version or g++ --version
<ysionneau> ?
<thunderbolt_> 4.3
<thunderbolt_> what version number is yours?
<ysionneau> I usually use 4.5.4
<ysionneau> but I never did C++ on lm32
<ysionneau> so I never used G++ and always used gcc
<ysionneau> but I would recommend trying 4.5.4
<thunderbolt_> OK and where to get it? Did you compile it from sources?
<ysionneau> yzq
<ysionneau> yes
<thunderbolt_> okay... I'm shocked they ship such old GCC with the 2014 LMS
<ysionneau> thunderbolt_: maybe first you can try to have a look at the assembly generated by your g++
<ysionneau> to make sure if it's correct or not
<ysionneau> with a simple test case
<thunderbolt_> I did that already
<ysionneau> it's bogus?
<thunderbolt_> I didnt trust LM32 at first and thought that one was buggy but the assembly showed that the vtable accesses were just incorrect
<thunderbolt_> So when a virtual method is called, there are some jumps here and the last one jumps to address zero -> reset and so on
<ysionneau> hum ok :/
<ysionneau> in that case indeed try 4.5.4
<thunderbolt_> yes I will, thanks
<thunderbolt_> Do you know some forum about LM32?`There seem to be quite few resources on the web...
<ysionneau> I only know about the milkymist/m-labs community
<ysionneau> maybe lattice has a forum but I don't know
<thunderbolt_> Umm do you use Linux to write the code for LM32?
<thunderbolt_> I'm used to Windows but building GCC from sources is easier on Linux for sure
<ysionneau> I use both Linux (Ubuntu/Debian) and Mac OS X 10.6 to compile LM32 code
<ysionneau> I never tried on Windows
<ysionneau> it's not totally up to date but it will build
<thunderbolt_> Thanks that will certainly help
nicksydney has joined #m-labs
<ysionneau> by using this: https://github.com/m-labs/scripts
<ysionneau> it's a set of makefiles that will fetch and build the toolchain
<ysionneau> it may be even easier like this :)
<ysionneau> just some exports and make -C compile-lm32-rtems
<thunderbolt_> thanks, I'll give it a try
<ysionneau> thunderbolt_: do you mind if I ask what you do with lm32? :)
<thunderbolt_> Actually, I'm writing my bachelor exam. An FPGA-based project is the start and it shall be controlled in a user-friendly way though the new FT800 display
<ysionneau> ah touch display
<ysionneau> cool
<thunderbolt_> yes, but the FT800 is too complex to control it from a HDL state machine or so
<ysionneau> sure, use a soft core :)
<ysionneau> will your project be open source on github ?
<thunderbolt_> we'll see... it very specific to that university project though
<ysionneau> it's not a problem that it's specific
<ysionneau> any cool open source project using FPGA and soft core is good
<ysionneau> it would allow others to learn from your experience and from what you've learned :)
<thunderbolt_> That's true
<ysionneau> when it's done, just git push it :) it takes seconds and it's good for everyone :)
<thunderbolt_> mpfr, mpc, gmp ... those are specific to milkymist aren't they?
<ysionneau> no
<ysionneau> those are dependencies of gcc
<thunderbolt_> umm ok...
<thunderbolt_> about git... please don't `git push` me :-)
<ysionneau> ;)
bentley` has joined #m-labs
<ysionneau> good night
<thunderbolt_> good night
thunderbolt_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
nicksydney has quit [Remote host closed the connection]