[GiM logo] gim.org.pl is down || odświeżony jogger (v.0.4) GiMa

I hear voices, wait a minute, that's not what I've meant.
I've heard there are more and more people interested in DDL (D Dynamic Libraries) under Linux. This is first of short series of posts that will describe some changes I've made in h3r3tic's team0xF's repo.

I suppose you have dmd, tango and rebuild ready.

First, grab a copy of team0xf ext repo:

  1. hg clone http://team0xf.com:8080/ext

The changes in team0xf repo will probably be commited to ddl's official repo, so don't overkill their machine ;>

Now add ext/ddl to your include path either in dmd.conf, or pass it directly on the command line.
I've dropped simple example in ext/ddl/ddl/Sample.
You can take a look at example on codepad

For using reflections we need map file that will be used by DDL, there is -Map switch for ld linker:

  1. rebuild -oqOBJS -clean -L-Map -Ltest01.map testReflection01.d

I was to lazy to write parser for ld-generated mapfile, and instead of that I've written small shell-script, that convert's map to a format that should be understandable by INSITU parser :->

Converting mapfile overrites the original, so if you need it for any reasons, make a copy of it.

To convert the map file:

  1. ../Contrib/fixmap.sh test01.map

Now you should be able to run executable, and get proper results.

This is just some initial stuff, I haven't commited most (ca 90%) of changes I've made, so more cool things are coming, stay tuned.

catz: [eng.lish] [kom.puterowe] [programowanie w D]
tagz: [d] [d programming language] [ddl] [język programowania D] [linux]
dnia sobota, 25 kwiecień 2009, 153046 by Michał 'GiM' Spadliński

Komentarze:

Proszę wpisy pisane po angielsku komentować również w tym języku.

DDL in Linux, part 1

This is first of promissed posts about DDL under Linux.


If you haven't read previous
post, please do so now, so I won't have to repeat myself.

If you have copy of team0xf ext repo, run hg pull; hg up;
if you don't have it yet, grab it:
[.[...]

dnia piątek, 01 maj 2009, 214805 by gim

..tożsamość..:
..meritum..:
..lokum..:
Wpisz kod:code