WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: languageONE extension for CorePlus64  (Read 7390 times)

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
languageONE extension for CorePlus64
« on: September 21, 2016, 10:54:57 PM »
Hello..I'm kinda new here, so I hope I am doing this correctly..
I believe the way to communicate at TinyCore is thru the forums ??

I am in Melbourne,Australia and have been developing a programming language that I believe would sit nicely in TinyCore. I call it languageONE and you are able to check it out at www.languageONE.com.au. It is infact, purely assembler but is presented in a series of macros that give the writer the experience of a high level language. It is based on the idea that Compilers were never really necessary and that languages could have evolved without them. It comes with statically linked libraries, communicates with the kernel directly and therefore does not rely on clib or any other libraries. It is built to be efficient and this is where I think it would make a great extension for TinyCore.

I have been working on getting TinyCorePure64 working and have only skimmed the instructions on building extensions but will start looking at that now.
Is this the sort of thing TinyCore would be interested in and if so would you be able to help me thru the process.

The system itself only has one dependency, that is nasm (or yasm) and I see there are already extensions for either of them. Being assembler the system really is just a series of text files, with the exception of the libraries (which can be built into the extension or simply assembled after installation) and a small translator program, written in languageONE and easily assembled and linked.

I certainly would be happy for it to be available in TinyCore and would look forward to any help you could offer.
I will look forward to a reply.
Thx
Roger Tunnicliffe.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: languageONE extension for CorePlus64
« Reply #1 on: September 21, 2016, 11:32:06 PM »
we're always happy to receive new extensions, please go ahead - I'm sure the forum users will help if required

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: languageONE extension for CorePlus64
« Reply #2 on: September 21, 2016, 11:52:32 PM »
 :) Great, I'll begin work on it
Thx

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: languageONE extension for CorePlus64
« Reply #3 on: September 24, 2016, 12:13:40 AM »
I have created a tcz and installed on my system.
my TinyCorePure64 is installed on my harddisk.
The installed layout is...

languageONE/assemble.sh
languageONE/link.sh
languageONE/makeONE.sh
languageONE/GUImakeONE.sh

languageONE/bin/GUI-makeONE
languageONE/bin/languageONE

languageONE/html/logo.jpg
languageONE/html/V1-16-screen0.html
.
.
languageONE/lib/COMMON.o
languageONE/lib/COMMON.LIB
languageONE/lib/STDIO.o
languageONE/lib/STDIO.LIB
.
.
languageONE/src/V0.04.ONE
languageONE/src/0.GUI-TEMPLATE.ONE
languageONE/src/V0.01.ONE
.
.
languageONE/include/BEGIN.PROGRAM
languageONE/include/BEGIN.INSTRUCTIONS
.
.
languageONE/doc/README.MD
languageONE/doc/languageONE.odt
languageONE/doc/LICENSE
languageONE/doc/VERSION.HISTORY

and it was my intention to have this install under my home directory. so.../home/tc/languageONE
whereas it installs in /lib /doc /src etc

Am I able to install it under a home directory or do I need to restructure the way it is setup

Thx





Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: languageONE extension for CorePlus64
« Reply #4 on: September 24, 2016, 12:37:32 AM »
If you're making a private extension you can do whatever you like  :)

If you're planning on submitting the exension, then the files need to be under:

/usr/local/bin
/usr/local/etc
/usr/local/lib
/usr/local/share/doc

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: languageONE extension for CorePlus64
« Reply #5 on: September 24, 2016, 01:27:03 AM »
so where does that leave me with the include files, the html, the shell scripts etc..???
 ???

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: languageONE extension for CorePlus64
« Reply #6 on: September 24, 2016, 01:48:55 AM »
You can see the extension file lists using the apps gui or from a browser  ;)

/usr/local/bin
/usr/local/include
/usr/local/share/doc/html

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: languageONE extension for CorePlus64
« Reply #7 on: September 24, 2016, 05:17:41 PM »
I have put the package together and done a local load on my system..

lrwxrwxrwx    1 root     root            59 Sep 24 23:53 GUImakeONE.sh -> /tmp/tcloop/languageONE/usr/local/languageONE/GUImakeONE.sh
lrwxrwxrwx    1 root     root            57 Sep 24 23:53 assemble.sh -> /tmp/tcloop/languageONE/usr/local/languageONE/assemble.sh
drwxrwxrwx    2 1000     1000            80 Sep 23 06:29 bin/
drwxrwxrwx    2 1000     1000           120 Sep 24 06:39 doc/
drwxrwxrwx    2 1000     1000           200 Sep 23 06:44 html/
drwxrwxrwx    2 1000     1000           440 Sep 23 06:45 include/
drwxrwxrwx    2 1000     1000           220 Sep 24 22:46 lib/
lrwxrwxrwx    1 root     root            53 Sep 24 23:53 link.sh -> /tmp/tcloop/languageONE/usr/local/languageONE/link.sh
lrwxrwxrwx    1 root     root            56 Sep 24 23:53 makeONE.sh -> /tmp/tcloop/languageONE/usr/local/languageONE/makeONE.sh
drwxrwxrwx    2 1000     1000           580 Sep 24 22:46 src/

however when I try and run anything it responds with file not found.
eg. I can "cat" makeONE.sh and its fine but it cannot be found when trying to run it ??? ???

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: languageONE extension for CorePlus64
« Reply #8 on: September 24, 2016, 06:09:46 PM »
Hi roger@languageONE.com.au
I'm guessing that's a directory listing of  /usr/local/languageONE/, and it's not listed in the path environmental variable, which
is why you are getting the not found message. Lose the  languageONE  part of the path and place the  .sh  files under
/usr/local/bin.

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: languageONE extension for CorePlus64
« Reply #9 on: September 24, 2016, 06:21:38 PM »
Sorry Rich, that's not it. Same problem.
and was giving full path names when I was trying to run the script
In addition when I try and edit the file it also says file does not exist.
Yet its still happy to cat it out to the screen  ??? ??? ???

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: languageONE extension for CorePlus64
« Reply #10 on: September 24, 2016, 06:31:30 PM »
Hi roger@languageONE.com.au
Quote
and was giving full path names when I was trying to run the script
Did you try:
Code: [Select]
./usr/local/languageONE/GUImakeONE.sh
« Last Edit: September 24, 2016, 06:37:30 PM by Rich »

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: languageONE extension for CorePlus64
« Reply #11 on: September 24, 2016, 06:42:02 PM »
Yeah, no difference.
The odd thing is though is that if I assemble a languageONE program on my Mint partition and copy it across to the TinyCore partition it runs fine.
I have languageONE installing on /usr/local/languageONE and I have it copied across to the hard disk at /home/tc/languageONE
Either locations and it cannot be found  ??? ??? ???

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: languageONE extension for CorePlus64
« Reply #12 on: September 24, 2016, 07:12:31 PM »
Hi roger@languageONE.com.au
You didn't post the actual error message, but I'm guessing  "file not found"  was not referring to your script but possibly
the scripting language it was written in, bash maybe?


Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: languageONE extension for CorePlus64
« Reply #13 on: September 24, 2016, 08:22:42 PM »
Yeah, I initially thought that but then why cant it find it when I try and edit it  ??? ???

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: languageONE extension for CorePlus64
« Reply #14 on: September 24, 2016, 09:16:07 PM »
and I am not sure if this is involved but it is definitely very odd..
When I have a look at my harddisk partition I get...
mount
/dev/sda1 on /mnt/sda1 type ext4 (rw,relatime,data=ordered)
but when I try and save a file using editor, i get
error writing to file /mnt/sda1/Users/roger/languageone/assemble.sh
Read-only file system

maybe some boot-codes I am getting wrong ????