NEWS ARTICLES


    What's News in the PlayBasic world ? - Find out here.



 PlayBasic2DLL V0.99i released

By: Kevin Picone Added: January 13th, 2015

Category: All,Tools,Upgrade,PlayBasic2DLL,Machine Code


PlayBasic To Dll V0.99i Released


          Here's revision I of PlayBasic2DLL V0.99 package. This revision features even more improvements to the machine code generation as well as continuing to iron any hidden instructions that weren't supported by the translation engine.

     In terms of code generation this update focuses mainly on pointer operations, in particular when reading / writing from a user defined typed pointer is used within an expression, as well as arithmetic and assignment operations on between pointers or between a pointer and integer.

     Example:
PlayBasic Code:
      type TestType
            x#,y#,z#
      EndTYpe


      Dim Src as testtype pointer
      Dim Dest as testtype pointer

      Src    = new testtype   
      Dest    = new testtype   


      ; write some integer values into these float fields..
      ; this type of type mismatch  is now auto recast at compile time
      Src.x   = 1111
      Src.y   = 2222
      Src.z   = 3333


      ; copy a field to another within the same type
      ; The op 
      Src.x=Src.Y

      ; copy fieldds between different types
      Dest.x=Src.x

      ; copy a field and add 100 to it
      Dest.y=Src.y+100

      ; copy a field and mult it by 2
      Dest.z=Src.z*2

      print Dest.x
      print Dest.y
      print Dest.z


      Sync
      waitkey
      

COMMANDS USED: DIM | POINTER | NEW | PRINT | SYNC | WAITKEY |


    The new changes allow the code builder to produce faster leaner machine code from such operations as well as when they appear in expressions, which generally can be solved on the cpu without having to hit memory with temp values like previous editions.

    This tool is intended to be used with PlayBasic V1.64P2 retail updates. !

     Read the PB2DLL development blog for the latest inclusions !






 

 
     
 
       

(c) Copyright 2002 / 2024 Kevin Picone , UnderwareDesign.com  - Privacy Policy   Site: V0.99a [Alpha]