On Wed, 2015-09-16 at 00:44 -0500, Rob Landley wrote:
> On 09/08/2015 04:44 PM, Geoff Salmon wrote:
> > Hi all
> > 
> > The attached tarball contains some VHDL and a Makefile which show how
> > you can simulate with GHDL [http://home.gna.org/ghdl/] and view the
> > resulting waveforms in GTKWave [http://gtkwave.sourceforge.net/]. See
> > the README for more info.

> But when I tried following the build instructions on
> http://sourceforge.net/p/ghdl-updates/code/ci/default/tree/README
> for the "mcode" backend, it didn't work. I did:
...
> ./ortho_code-x86-abi.o: In function `ortho_code__x86__abi__link_intrinsics':
> /home/landley/sei/vhdl/ghdl-updates-code/src/ortho/mcode/ortho_code-x86-abi.adb:775:
> undefined reference to `__muldi3'

> The fix for the dlopen and sin/log/exp stuff was to add "-ldl -lm" to
> the gnatlink command line, but the __muldi3 and friends not found is
> tricky: libgcc only has the single underscore versions, not the double
> underscore versions? I'm trying on Ubuntu 14.04 for x86-64...

Good debugging. Unfortunately you are correct, mcode, while not actually
deprecated, is not supported for x86-64 because it is a JIT compiler
generating 32-bit code. Adapting it for 64 bit would probably not be
trivial...

If you build from the trunk, however, the LLVM backend is working nicely
though the gcc build is probably still more proven (but a more difficult
build process).

I have wondered how far you can get on a 64 bit system with mcode, by
building with -m32 and using all the :i386 libraries...

-- Brian



_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to