Forum > Android-JVM

Compile to a tablet?

(1/12) > >>

regressist:
Hi all,
I am sorry if my question is stupid and probably very wrong. My experience with Pascal is limited to programs like the ones in the very old Jensen, Wirth- Pascal User manual and report- 1978 (Yes, 78!), no graphics, no class, no make, etc. Sometimes I revamp it when I need to solve some problems which are too complex for some math packages.
I have successfully written a small program which makes some computations with integers, does not need any input or interactions, and has very little requirements in terms of ram, etc. During execution it writes on screen some numbers to show the status of the computation, at the end it just writes to a file some numbers. It runs on pc, BUT the problem is the CPU usage, if I want to find some solutions I need weeks and probably months. I do  not want to burn my PC. In absence for now of access to a powerful workstation or a mainframe I was thinking to use an old Samsung Galaxy tab, even though slower I would not care if it would die.
So the question is: is there any possibility to compile this program (it is only a basic program) to an .apk which in my dreams would need only to be tapped and starts the computation, again no interaction.
Please note that as an add-on I know nothing also of Android.
Thanks in advance to anybody will take the time to answer

Sergio

af0815:
It is not the easiest way. Normally nothing for a newbee

Docs for installing are here https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/docs in LAMW_Getting_Started.txt

Search for LAMW + Lazarus give more results.

BTW: A RasPi will also a cheap soloution - can run headless

marcov:

--- Quote from: af0815 on October 27, 2021, 02:46:14 pm ---
BTW: A RasPi will also a cheap soloution - can run headless

--- End quote ---

Or any PC out of a dumpster will probably be both easier and faster.

MarkMLl:

--- Quote from: marcov on October 27, 2021, 02:48:18 pm ---
--- Quote from: af0815 on October 27, 2021, 02:46:14 pm ---
BTW: A RasPi will also a cheap soloution - can run headless

--- End quote ---

Or any PC out of a dumpster will probably be both easier and faster.

--- End quote ---

Do any "cloud-based" computation services have off-peak rates? In any event, reading between the OP lines if this really is going to need lots of CPU time the first thing to do is to work out to what extent it can be split into threads (since just about every CPU now has multiple cores) or can be parallelised over a cluster (or real computers or VMs provided by AWS or whoever).

MarkMLl

alpine:
Although it is not "Compile" to a tablet, searching a time ago for a Pascal app for purely educational purposes, I found Pascal N-IDE. It is an interpreter and it can load/save scripts to the phone storage, so it is possible to transfer scripts from/to PC.

Đ•valuated by me for nothing but for weird tests how it handles enumeration types, multi-dim arrays and things like that. It doesn't work well.

Very simple to use but probably it is completely worthless for computational intensive tasks. Not tested though.

Navigation

[0] Message Index

[#] Next page

Go to full version