В Thu, 27 Jan 2011 18:24:15 +0300
Michael Pliskin <[email protected]> пишет:

> Hi,
> 
> Did anybody try to run neko on embedded systems (say on ARM chips)?
> We've just tried and found the build process quite tough for that:
> you need to build neko both on host and target platforms, and this
> makes things quite complicated. Did anybody try it already? Maybe
> some existing shell scripts or makefiles? Or I will try to rewrite
> the Makefile..
> 
> Mike

1. If the target is "just not to install a compiler on embedded system
due to memory limit or due to some other impossibility to use it there"
- then, I think, You should think about modifying "nekotools boot" tool
to make it append startcode and other stuff to the output executable.
2. As I understand (maybe, wrong), nekotools boot sticks your .n file
with neko itself - then you have to use such a neko build which is fully
compiled to your architecture (in this case modifying of nekotools is
not needed). Actually I don't know if it is easy or complex to port
neko. My doubt is caused by phrase "Neko compiler is written... in
Neko" here http://nekovm.org/faq. Nicolas would explain MUCH BETTER,
I'm not enough experienced.
3. For such compiling you can use some kind of usual full-virtualization
VM (qemu, vmware etc.) which can emulate an ARM processor. This way you
can give to a guest ARM system as much memory as your host system has.
4. Everything that I wrote above may fit for ARM architecture. And if it
is possible - then it would be a great and complex work of porting
neko to unusual (RISC) architacture. But if you wish to use smth like
ATtiny2313
- it's not a good idea to use an additional VM. At least it's not even
available to write in C++ for such processors, only C.
Or ASM )

Best Regards, Alexander ;-)

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to