Author Topic: RaspberryBASIC.org Forum  (Read 99503 times)

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: RaspberryBASIC.org Forum
« Reply #180 on: December 19, 2019, 07:23:22 PM »
Simply removing that flag isn't the way to go.

You need to add a conditional statement to that block, and may need to check other sections as well.

Or create a new .mak file tailored to arm64 (not the best way to go about it, but if you're gonna take the brute-force approach, that's one way to do it while preserving the original .mak file so it's still portable).

If you want this bad enough, you'll find a way....


AIR.




Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: RaspberryBASIC.org Forum
« Reply #181 on: December 19, 2019, 08:12:45 PM »
I'll shoot an e-mail off to Antonio and see if he can provide some guidance.

Offline jalih

  • Advocate
  • Posts: 111
Re: RaspberryBASIC.org Forum
« Reply #182 on: December 20, 2019, 02:20:52 AM »
Can you post the source as well?
It's the same source I posted earlier...

Offline jalih

  • Advocate
  • Posts: 111
Re: RaspberryBASIC.org Forum
« Reply #183 on: December 20, 2019, 02:39:36 AM »
8th still holds the crown at 8 megs.
It's like I said to be expected! Full 8th functionality is bundled with binary. There is gui support, sound support, hardware support, network support, Bluetooth support, crypto support, database support and a lot more...

I can easily write all kinds of software without any 3rd party libraries. It's a big plus for me and normally I don't bother building executables, I just use 8th to run the source file.

Attached is a picture of the simple morphing program I wrote with 8th.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: RaspberryBASIC.org Forum
« Reply #184 on: December 20, 2019, 11:42:48 AM »
Quote from: AIR
If you want this bad enough, you'll find a way....

The painful journey of being the first.

On a positive note, Eben Upton (lead RPi engineer) liked the concept of Ubuntu 64 on the RPi 4B. (Twitter conversation)
« Last Edit: December 20, 2019, 08:08:08 PM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: RaspberryBASIC.org Forum
« Reply #185 on: December 20, 2019, 08:44:50 PM »
Can you do a Rust and Free Pascal timex if they are available for Ubuntu 64 on the RPi?
« Last Edit: December 20, 2019, 08:46:21 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: RaspberryBASIC.org Forum
« Reply #186 on: December 20, 2019, 10:08:13 PM »
Quote from: AIR
If you want this bad enough, you'll find a way....

The painful journey of being the first.


Try the attached tecmake.mak file.  Place it in your IUP folder.  Then just run 'make -B'.


Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: RaspberryBASIC.org Forum
« Reply #187 on: December 20, 2019, 10:19:47 PM »
Freepascal 64bit:

riveraa@rpi:~/Projects/fpc/1mil3$ fpc -XX -CX -O3 mil64.pas
Free Pascal Compiler version 3.0.4+dfsg-22 [2019/01/24] for aarch64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for AArch64
Compiling mil64.pas
Assembling mil
Linking mil64
31 lines compiled, 0.4 sec

riveraa@rpi:~/Projects/fpc/1mil3$ timex ./mil64
r len: 999986
Front: ZYXWVUTSRQPONMLKJIHGFEDCBA
Back:  ZYXWVUTSRQPONMLKJIHGFEDCBA
UBVal: 1000000
0.15user 0.02system 0:00.17elapsed 98%CPU (0avgtext+0avgdata 5616maxresident)k
0inputs+0outputs (0major+1423minor)pagefaults 0swaps


AIR.

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: RaspberryBASIC.org Forum
« Reply #188 on: December 20, 2019, 10:34:14 PM »
RUST 64bit:

riveraa@rpi:~/Projects/rust/1mil3$ rustc -O mil64.rs

riveraa@rpi:~/Projects/rust/1mil3$ timex ./mil64
r LEN: 999986
Front: ZYXWVUTSRQPONMLKJIHGFEDCBA
Back:  ZYXWVUTSRQPONMLKJIHGFEDCBA
UBVal: 1000000
0.02user 0.01system 0:00.04elapsed 100%CPU (0avgtext+0avgdata 10440maxresident)k
0inputs+0outputs (0major+2371minor)pagefaults 0swaps


AIR.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: RaspberryBASIC.org Forum
« Reply #189 on: December 20, 2019, 10:53:23 PM »
Thanks AIR!

Not without  a shit load of scary warnings along the way.

I used make -j 4 replacing the tecmake.mak in IM/CD/IUP with  yours.

Sucks this is static only.

The install and install_dev scripts need work for this platform. No ARM64 support.


Tecmake: Static Library (../lib/Linux53_arm64/libim.a) Done.
-rw-r--r-- 1 ubuntu ubuntu 2228190 Dec 20 22:28 libim.a
-rw-r--r-- 1 ubuntu ubuntu  317320 Dec 20 22:27 libim_fftw.a
-rw-r--r-- 1 ubuntu ubuntu  437912 Dec 20 22:26 libim_jp2.a
-rw-r--r-- 1 ubuntu ubuntu   12380 Dec 20 22:27 libim_lzo.a
-rw-r--r-- 1 ubuntu ubuntu  810614 Dec 20 22:27 libim_process.a
-rw-r--r-- 1 ubuntu ubuntu 1741958 Dec 20 22:28 libim_process_omp.a

Tecmake: Static Library (../lib/Linux53_arm64/libcd.a) Done.
-rw-r--r-- 1 ubuntu ubuntu 1284338 Dec 20 22:31 libcd.a
-rw-r--r-- 1 ubuntu ubuntu   50350 Dec 20 22:29 libcdpdf.a
-rw-r--r-- 1 ubuntu ubuntu 1923682 Dec 20 22:30 libpdflib.a

Tecmake: Static Library (../lib/Linux53_arm64/libiup.a) Done.
-rw-r--r-- 1 ubuntu ubuntu 2627956 Dec 20 22:34 libiup.a

gcc -std=gnu99 -o lua   lua.o liblua.a -lm -Wl,-E -ldl -lreadline
gcc -std=gnu99 -o luac   luac.o liblua.a -lm -Wl,-E -ldl -lreadline

ubuntu@rpi4b:~/iup-dev/lua53/src$ ./lua -i
Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio
>


I may try to do a Lua SALC Ubuntu 64 now that I have it working.
« Last Edit: December 20, 2019, 11:46:06 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: RaspberryBASIC.org Forum
« Reply #190 on: December 21, 2019, 12:54:39 AM »
I managed to compile dynamic arm64 libs.  Don't know if they work, but they're attached.

AIR.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: RaspberryBASIC.org Forum
« Reply #191 on: December 21, 2019, 01:12:11 AM »
Wow!

That's great. What desktop did you install?

Can you share how you did it as I need to do the same for CD and IM.
« Last Edit: December 21, 2019, 01:14:53 AM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: RaspberryBASIC.org Forum
« Reply #192 on: December 21, 2019, 01:36:02 AM »
Seems to work.

Code: C
  1. #include <stdlib.h>
  2. #include <iup/iup.h>
  3.  
  4. int main(int argc, char **argv)
  5. {
  6.   IupOpen(&argc, &argv);
  7.  
  8.   IupMessage("Ubuntu 64 RPi 4B", "Hello world from IUP.");
  9.  
  10.   IupClose();
  11.   return EXIT_SUCCESS;
  12. }
  13.  
« Last Edit: December 21, 2019, 01:38:16 AM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: RaspberryBASIC.org Forum
« Reply #193 on: December 21, 2019, 02:53:20 PM »
AIR,

Did you create a tecmake.mak that generates shared objects rather than static libraries? It would be great to have a set of dynamic and static IUP libries.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: RaspberryBASIC.org Forum
« Reply #194 on: December 21, 2019, 05:17:28 PM »
I was curious how much the array part was consuming time and memory. A couple seconds faster but the eye opener is the memory use.


ubuntu@rpi4b:~/salc/sb-dev$ timex scriba 1mil4.sb
t LEN: 999986
Front: ZYXWVUTSRQPONMLKJIHGFEDCBA
Back:  ZYXWVUTSRQPONMLKJIHGFEDCBA
4.95user 0.31system 0:05.28elapsed 99%CPU (0avgtext+0avgdata 3924maxresident)k
424inputs+1960outputs (3major+883minor)pagefaults 0swaps
ubuntu@rpi4b:~/salc/sb-dev$