Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
12
Return to list New
Author: jadr2ddude

OPI One Cluster Processing

[Copy link]

11

Threads

75

Posts

376

Credits

Intermediate member

Rank: 3Rank: 3

Credits
376
Post time 2016-6-25 19:57:00 | Show all posts
i don't know details of your project, sorry.

for me inferno is a C library with powerful typesafe communication protocol supported transfer of regular data, files, system calls (as qnet from qnx). yes, it has embedded scripting engine, but it can used without it (a harder way - http://9p.cat-v.org/implementations).

- to embed inferno as library in a C/C++ project just modify (rename) main function in the <inferno-os>/emu/port/main.c
- to remove unnessesery components/devices/libraries just comment or delete them from <inferno-os>/Linux/emu
- if you don't want to run sh at startup - just change /appl/cmd/emuinit.b startup module. line 63:

from: return (mod, "sh" :: "-c" :: "$*" :: args);
to: return (mod, "your own module"::"arg1"::"arg2"::"etc");
compile it: limbo emuinit.b
and move result: mv emuinit.dis /dis


also you can add your C module. here a example of embedding vx86 sandbox to run x86 elf files from inferno media:
http://ipn.caerwyn.com/2009/01/lab-92-vxinferno.html

if you should write biggest part in C/C++, you can use it as C library (as inferno itsef %90 C) with a scripting language (Linux without scripting configs?? this sounds as windows) as part of the library.

to select what scripts you need to include into your distribution use "disdep" command
```
disdep <your compiled script>.dis
disdep /dis/emuinit.dis
```
Reply

Use magic Report

0

Threads

5

Posts

48

Credits

Novice

Rank: 1

Credits
48
Post time 2018-10-12 23:37:36 | Show all posts
Wow great idea
Reply

Use magic Report

0

Threads

5

Posts

48

Credits

Novice

Rank: 1

Credits
48
Post time 2018-10-12 23:39:24 | Show all posts
But there's a question... are you expecting all the OPI board as a gift from orange pi organization??
Reply

Use magic Report

0

Threads

5

Posts

48

Credits

Novice

Rank: 1

Credits
48
Post time 2018-10-12 23:41:47 | Show all posts
But there's a question... are you expecting all the OPI board as a gift from orange pi organization??
Reply

Use magic Report

12
Return to list New
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-22 08:54 GMT+8 , Processed in 0.025109 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list