Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...
   All Posts (jay-t-77)


(1) 2 3 4 5 »


Compile a shared library

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
Hello,
I am the author of Nano VM, it is a virtual machine.
I found out that an older version is included in the current Icaros Desktop Distribution. :)

Now I am working to port the current version of Nano VM.
My VM can load shared libraries (.so) on Linux and Windows.
And this is my question: how can I compile a shared library with AROS gcc?

I tried this on Icaros Desktop gcc compiler:

gcc -Wall -fpic -c *.c
gcc -Wl,-soname,libtest.so.1 -o libtest.so.1.0 *.o

I got this message:

There are undefined symbols in 'libtest.so.1.0'
load_page
main
_GLOBAL_OFFSET_TABLE_
ThreadBase
save_page

Ok, load_page and save_page are the virtual memory functions in my VM. They are called by the shared library.

How can I tell the linker that it should build a shared library like on say Linux (.so)?

Posted on: 8/2 0:27
Transfer the post to other applications Transfer


Re: Installing Icaros 2.0.1 on USB-stick

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
Hi!
Thanks for your help. I burned a new DVD and switched AHCI in the BIOS off. And installed Icaros 2.0.1 again on the USB stick.

Now Icaros boots from the stick. But I get a "put device L in any drive" message. If I can remember right.

The mouse pointer is just a red triangle in the upper left corner and I can't move it. I can't click on "retry" or "cancel".

It looks like an assign path was not set right on install?
How can I fix this?

Posted on: 2014/12/25 4:36
Transfer the post to other applications Transfer


Installing Icaros 2.0.1 on USB-stick

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
Hello. I tried to install Icaros 2.0.1 on real hardware (laptop, 64 bit CPU). Right on boot from the DVD I get a software failure message. And a window over that message with something like "stdc.library can not be loaded".

The Workbench screen is frozen and the mouse pointer can't be moved. I had to switch of the PC.

Do I need to set special BIOS options to run AROS on real hardware?

And now the curious part: I did make a install on Qemu onto a virtual hard disk file. Everything installs right.
But if I try to boot from the hard disk file I get a software failure message too.

What fundamental thing is wrong here?

Posted on: 2014/12/23 11:52
Transfer the post to other applications Transfer


Re: Nano VM - testers/developers wanted

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
I made a build with the JIT-compiler for 32 bit.
And Nano runs but I get a "stack exceeds outside of range" message.

This seems to be a to less stack issue.
What is the maximum stack size that can be set by the stack command?

Is there a way to increase the stack from program side?
With a special function call?

The 32 bit JIT-compiler was tested on Windows 32 bit and it worked right.
So this is a stack problem on AROS.

Posted on: 2014/1/25 9:53
Transfer the post to other applications Transfer


Re: Nano VM - testers/developers wanted

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
http://diy-2010.net/community/2014/01 ... ano-vm-rights-management/

Now I made a new Nano build for Android ARM, Linux x86_64 and AROS i386. For Android I made a new version of Flow the GUI server and this works now on Android too.

The new rights management makes it possible to run programs in sandbox mode.

I made the build on Icaros Live 1.5.2. Multithreading seems to work now and I did some tests. However the JIT compiler is switched off and is not working. But it maked trouble anyway if activated and used.





Posted on: 2014/1/5 7:25
Transfer the post to other applications Transfer


AROS Vision on real A500?

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
Hi!
I wanted to try AROS on my 68k A500 tower.
I made a boot disk from the emergency boot directory of AROS Vision 2.1.
I tried to boot from that disk.
The turbocard an E-Matrix 030 was recognized and the Kernel was loaded
into fast RAM.
Then the message "try to boot" appeared.

The Amiga rebooted a few times, then I switched it off.

Has someone tried Vision on an real Amiga? Probably on an A500?

The E-Matrix has OS 3.1 in the ROMs and 24 MB RAM.
It seems that the AROS kernel crashes while booting.
Is the E-Matrix turbocard not really compatible to the AROS kernel?
Stupid question: Must there some boot flags be set to the kernel loader?







Posted on: 2013/12/26 9:12
Transfer the post to other applications Transfer


Amiga 68k cross compiler setup

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
Hi!
I installed the cross compiler for Amiga 68k on Linux.
I wanted to use the latest version of ixemul.library (63.1) and copied the files.

But the gcc compiler can't find the crt0.o linking file which was in the ixemul library archive. Where must the link files go?
I copied them to /usr/local/amiga/lib but this didn't work.

Here is the cross compiler:
http://kas1e.mikendezign.com/zerohero ... p/cross-compiler_os3.html


Posted on: 2013/12/26 2:44
Transfer the post to other applications Transfer


Re: Porting AsmJit JIT compiler to AROS

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
Now the build runs and I'm testing.
A test program stays in a endless loop. It just repeats the part before the JIT compiler was run.

I guess it has something to do with the code the JIT compiler generates.
I have to use two registers as the base of my VM register array.
Then it's a offset calculated to the needed registers.

Can I use the ESI and EDI registers for that? Or do they have a special purpose on 32 bit code? I'm not sure if the loop trouble comes from this.



Posted on: 2013/9/7 5:55
Transfer the post to other applications Transfer


Re: Porting AsmJit JIT compiler to AROS

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
Now I got a error message while linking:

undefined symbol _GLOBAL_OFFSET_TABLE_

I did a text search on Linux over the source code:

it is in libasmjit.a

What is this and what can I do now?




Posted on: 2013/9/3 9:39
Transfer the post to other applications Transfer


Re: Porting AsmJit JIT compiler to AROS

Joined:
2010/1/1 6:14
Group:
Member
Posts: 43
Offline
Ah so AsmJit is autoconfiguring stuff while compiling.
And detected a 32 bit system.

So I have to build in some decision code to switch back to 32 bit mode.

I will try that. Thanks for the tipp.
This will help me a lot.

Posted on: 2013/9/3 7:28
Transfer the post to other applications Transfer



 Top
(1) 2 3 4 5 »




Search
Top Posters
1 paolone
paolone
4347
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3891
4 nikolaos
nikolaos
3677
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2633
7 mazze
mazze
2214
8 clusteruk
clusteruk
2103
9 Kalamatee
Kalamatee
2024
10 damocles
damocles
1789
© 2004-2017 AROS Exec