PBP 2.50 pbpw vs pbpl .exe


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818

    Default PBP 2.50 pbpw vs pbpl .exe

    Hello Everyone,
    The big brown truck delivered my new ver. 2.50 today.
    why does it not think the following code is a wonderful thing?<p>
    Bogus var long
    Microcode studio displays a BIG BROWN STRIPE, and I don't like those anywhere !
    <p> Is there something I need to tell Microcode Studio about the upgraded compiler, or must I now compile from the DOS prompt using PBPL ?
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,560


    Did you find this post helpful? Yes | No

    Default

    Hi Joe,
    I haven't got 2.50 yet but have a look at this thread. Apperantly Darrel (...supprise...) has figured out a workaround.

    /Henrik Olsson.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Surprise!

    Well, credit were credit is due.
    The workaround was from Charles Leo @ melabs.

    But like the other thread said. That is what I'm doing now.
    <br>
    DT

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,560


    Did you find this post helpful? Yes | No

    Default

    Man, I got to learn how to spell. S-U-R-P-R-I-S-E

    Thanks then to Charles and to you Darrel.

    /Henrik.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default eyekando

    Quote Originally Posted by Darrel Taylor View Post
    Surprise!

    Well, credit were credit is due.
    The workaround was from Charles Leo @ melabs.

    But like the other thread said. That is what I'm doing now.
    <br>
    Thanks Henrik, and Darrel,
    So I guess the next logical question is . . . why not use only the renamed PBPL ? And I guess this is my fault, you see I just bought the MCS pro about a month ago . . .
    <p>
    EDIT: Ahhhh only 18XXXX chips supported by PBPL
    Last edited by Archangel; - 20th September 2007 at 07:58.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    So I guess the next logical question is . . . why not use only the renamed PBPL ?
    Mostly because some things work just a little differently than they used to.

    Programs that you've written before, may compile fine with the new version, but may not work exactly the way it would if compiled with the 16-bit version (PBPW.EXE).

    Sometimes it's just little things, like MAX and MIN, or math formulas that you expect to have one result after Overflowing, but it doesn't overflow anymore. Or maybe an IF statement that didn't consider negative numbers when it was first written.

    So for anything written for 2.47 or prior, it's a good idea to compile it with PBPW.EXE (2.50)

    And if you want to use longs. Make a new program. If you just try to insert longs in your old programs ... well I guess at least we'll have lots of problems to talk about on the forum .

    The other part is that PBPL.EXE will generate programs that are larger than PBPW. Most of the System Functions are set up to use LONG variables. Even if you don't use LONGs in your program, it still takes up the extra code space. Plus all T? variables (the temporary variables use in complex math formulas) are all LONGs, as are R0-R3, so it uses more RAM too.

    Charles Linquis recently reported that his program which used to fit in 128k, doesn't anymore.
    What a Code HOG.

    He also estimated the increased size at 5%.
    Seems pretty low to me. I would have expected more.

    Then there's that 18F only problem that you pointed out.

    <br>
    DT

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Thanks Darrel,
    for clearing that up, so if you do not use 18f series chips you might just as well save your money on the upgrade, Huh ? Cause LONGs do not beLONG in a 16Fxxx. Any real changes in ver 2.5 that do work on the poor relatives ?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Any real changes in ver 2.5 that do work on the poor relatives ?
    Hmmm, good question!

    I don't know. Haven't even looked.

    Not sure I'll even use 16F's anymore.
    At least until there's PBPPI14L.LIB and MAC
    <br>
    DT

  9. #9
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    He also estimated the increased size at 5%.
    Seems pretty low to me. I would have expected more.
    Probably because as a percentage of a very large program, the extra code is not much. For a small bit of code, it certinaly is more. Just a quick check I did turned 2174 bytes into 2818. About 30%

    SteveB

  10. #10
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Good point steve!

    Percentages kind of work that way, don't they?

    But when you point out it's only 644 bytes extra, it most certainly seems worth it.
    <br>
    DT

  11. #11
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    ... it's only 644 bytes extra...
    That was without actually adding any additional code or changing variables. Just recompiling an existing bit of code with the PBPL.

    I would guess there is a little bit more added as code is introduced, but it does give an idea of the minimum overhead cost.

Similar Threads

  1. PBP and PBPL
    By keymuu in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 30th January 2009, 17:58
  2. PBP 2.50 UPGRADE problems!!!!
    By earltyso in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 7th March 2008, 15:42
  3. Strange problem with PBP 2.50
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th October 2007, 20:45
  4. MCS+ with PBP 2.50
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st September 2007, 05:52
  5. New PBP 2.50?
    By Dave in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 9th September 2007, 19:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts