Shop OBEX P1 Docs P2 Docs Learn Events
BST question — Parallax Forums

BST question

David BetzDavid Betz Posts: 14,516
edited 2010-12-12 20:05 in Propeller 1
BradC: First, thanks very much for your BST toolset! I've used it under both Windows and the Macintosh and it's very nice to have the conditional compilation features that are missing from the Propeller Tool. Keep up the good work!

I have a question though. I guess I haven't fully embraced the Propeller way of thinking and I tend to often forget to select my main source file before pressing F11 to download my program. This of course results in one of my sub-objects being loaded as if it were the main program. Is there a way to define one file as the main file so it will be compiled as the main object whenever I hit F11 no matter which file is currently open in the editor? I see there is some sort of project facility but I haven't figured out how to use it. Will that do what I want?

Thanks,
David

Comments

  • BradCBradC Posts: 2,601
    edited 2010-12-12 19:51
    No it won't.

    What I've been working on is a bit similar to the Propeller Tool whereby you can select a "top file" which gets compiled if you use ctrl+F8->11, but I stalled and never got much further with it.

    I'm now unsure of the best way to do it as I get trapped like you do also but I don't like the idea of having F8->F11 for the current file and CtrlF8->F11 for the top file. I need to give it some more thought as the F keys are also a bit of a bear on the Mac (and inconsisted across Mac models). I need to come up with a better way of doing it I think but I also would like to exploit the similarity with the Propeller Tool so those with "windows" motor memory are not forced to do something completely differently.

    The Project file is just a way of grouping your projects so that you can open one file and get all your tabs back where they were before you closed (including tab->propeller assignments). How ever I do it, the top file will be integrated into the project file.

    My time for bst is pretty sparse at the moment, but in about 10 days I've got 4 ~9 hour flights in front of me which I can use to try and catch up a bit.
  • David BetzDavid Betz Posts: 14,516
    edited 2010-12-12 19:58
    BradC wrote: »
    My time for bst is pretty sparse at the moment, but in about 10 days I've got 4 ~9 hour flights in front of me which I can use to try and catch up a bit.
    Thanks for your response. I guess I don't know of a good way to preserve compatiblity with the Parallax tools but also make development easier for those who find it difficult to remember to select the correct file before compiling. My only thought is that maybe if a project is being used the meaning of F8-F11 could be changed to mean "compile the main file of the project". In the absence of a project, the F8-F11 keys could retain their standard meaning. I don't think Parallax has project files so that wouldn't be inconsistent with their tools. In any case, I look forward to hearing about what you come up with after all of those long flights! :-)
  • BradCBradC Posts: 2,601
    edited 2010-12-12 20:00
    Oh, I like that idea. The only thing is I also like using F9 as a quick syntax check of the current file and to give me sub-objects symbol tables/exports (ctrl-spacebar while the mouse is on an object name to display the export table).
  • David BetzDavid Betz Posts: 14,516
    edited 2010-12-12 20:05
    Hmmm... I see the problem. You're right that those features are nice to have as well.
Sign In or Register to comment.