Commit Graph

7 Commits

Author SHA1 Message Date
Tor Lillqvist
dbd0fa7216 Use // consistently for comments in the iOS assembly sources
Change-Id: I60bbf6c309130bbf868745b3ba6fc1c0729d850a
2013-10-01 00:53:27 +03:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Tor Lillqvist
9c5bb99403 More snippets, and cosmetics
Change-Id: I150981237dc642e46751f0824aeda53dbdb59e5c
2013-01-19 23:58:41 +02:00
Tor Lillqvist
a477138dfa Work on the iOS C++/UNO bridge
Split uno2cpp.cxx and cpp2uno.cxx into separate files for the emulator
(i386) and device (ARM). Much cleaner like that.

Try harder to get the ARM stuff to actually work.

Add the rtti.h and unwind-cxx.h files from libcppabi as such instead
of cherry-picking stuff from them.

Change-Id: Ia238a9ce048116ad796dfb168fd4e5d3b9712ad5
2013-01-19 23:58:40 +02:00
Tor Lillqvist
4067e629f7 Fix crasher and generate PIC for iOS simulator
Had an embarrassing thinko in the assembler generation for the iOS
simulator, had forgotten the $ for a literal number. While at it, make
also the simulator read-only code snippet data structures
position-independent. Some minor comment improvements. Bridge seems to
work now on simulator.
2012-04-15 11:56:48 +02:00
Tor Lillqvist
cc9b1e4e41 Make the iOS ARM code position-independent 2012-03-05 02:05:26 +02:00
Tor Lillqvist
9540af1ece Start of C++/UNO bridge for iOS simulator and device
Unlikely to work yet, but at least builds for the simulator.

We can not use dynamic code generation on iOS, so we use a fixed set
of code snippets, genertated by a Perl script. Experimentation seems
to indicate that a relatively small set of static code snippets should
be enough in simple use cases with no extensions (that we can't really
support on iOS anyway) and stuff.

Except for the static set of snippets the code mostly is, or will be,
an ifdefified combination of the gcc3_linux_arm and gcc3_macosx_intel
code. The ABI on iOS ARM devices should be quite close to that on
Linux ARM, knock on wood.
2011-08-14 00:51:32 +03:00