Shop OBEX P1 Docs P2 Docs Learn Events
Announcement: Cross platform Propeller tools — Parallax Forums

Announcement: Cross platform Propeller tools

OwenSOwenS Posts: 173
edited 2008-09-18 18:08 in Propeller 1
Propeller Tools - the cross platform Propeller tool suite
Propeller Tools is an assembler and associated linker written in (mostly) standard C and C++. It compiles cleanly on Linux, should compile cleanly on OS X, and will nearly compile on Windows (Windows lacks the stdint.h header, otherwise it should compile).

Propeller Tools is very much pre alpha software. It will probably crash. It will probably produce corrupt images. It, as you might expect, comes with no warranty. It is licensed under the GPLv3, with the exception being the header file poff/poff.h, which contains the structures of the object format it uses. This file is under the X11 license, which basically says do whatever you want but if it breaks you get to keep the peices.

PASM implements Propeller assembly in a way completely compatible with the instruction set of the Proptool, with two exceptions: @ behaves as expected, not as it does in the Proptool. That is, @label will give you the hub address of the label. Secondly, PLink will generate an error if any relocations don't fit.

PASM also supports generating LMM code, and code for my virtual machine which I have termed VMM. The LMM code generated is targetted at the micro-LMM inside of the VMM interpreter. It shouldn't be difficult to implement a compatible standalone LMM interpreter however. The LMM interpreter is not compatible with the one used by ICC (The jump table and "registers" are in different locations). As VMM is nowhere near complete, I have not yet included it.

You can get the source and more information at tdn.teknetium.com/project/proptools/. I apologise for the messyness of the source code; I know it needs a large tidy, and intend to do so eventually. Anyone who wants to contribute please conact me (By E-Mail or PM) and I can give you a Trac and SVN account.

Remember that this is very much work in progress software!

Comments

  • scanlimescanlime Posts: 106
    edited 2008-09-17 19:01
    Why GPLv3?
  • OwenSOwenS Posts: 173
    edited 2008-09-17 19:04
    Why not? While I hate people who GPL libraries, it's a perfectly fine license for applications. As for why v3, theres no particular reason except that there wasn't much to differentiate between them in this case.
  • OwenSOwenS Posts: 173
    edited 2008-09-18 14:56
    I updated the Wiki at the link above (tdn.teknetium.com/project/proptools/) with documentation on how to use PASM and PLink last night. Additionally, Ive just created an article on how to use PASM and PLink to produce a hello world app.
  • SapiehaSapieha Posts: 2,964
    edited 2008-09-18 15:21
    Hi Owens.

    Can You provide executables that can run on XP.
    So I can test it before than I load all nesesary parts to compile Yours code ?

    Regards Christoffer

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer
    If you don't ask you wont know
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible


    Sapieha
  • OwenSOwenS Posts: 173
    edited 2008-09-18 15:23
    Sapieha,

    I'll get it building with Visual C++ 2005 now. It should also build with any version 2002 and later, and MinGW. It should only be a change to define int*_t and uint*_t.
  • SapiehaSapieha Posts: 2,964
    edited 2008-09-18 15:28
    Hi Owens.

    Thanks
    But for a moment I not have any kid of C compiler on my computer.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer
    If you don't ask you wont know
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible


    Sapieha
  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-09-18 16:50
    Sapieha,
    ·· Nowadays, there are all sorts of free compilers provided by even big names such as Microsoft and Borland. I just installed the free copy of Turbo C++ on my home computer, in exchange for providing registration information. A nice place to see all thats availible is here: http://www.thefreecountry.com/compilers/index.shtml

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.

    Post Edited (Paul Baker (Parallax)) : 9/18/2008 4:55:21 PM GMT
  • SapiehaSapieha Posts: 2,964
    edited 2008-09-18 16:55
    Hi Paul Baker.

    Thanks for Link.
    Very interesting

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer
    If you don't ask you wont know
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible


    Sapieha
  • OwenSOwenS Posts: 173
    edited 2008-09-18 18:08
    A build of the current code can be found at tdn.teknetium.com/static/ptools-win32.zip. If it does not run you may need the Visual C++ 2005 SP1 runtime package, from here.

    Remember that the Propeller Tools package is still very much work in progress. The code this is built from is SVN revision 5.
Sign In or Register to comment.