Skip to content

shingarov/Pharo-ArchC

Repository files navigation

ArchC for Smalltalk

How to load

...into Pharo

Metacello new
  baseline: 'ArchC';
  repository: 'github://shingarov/Pharo-ArchC:pure-z3';
  load.

To create fresh image for development:

Either use shortcut:

 ```
 git clone https://github.com/shingarov/Pharo-ArchC ArchC
 cd ArchC/pharo
 make
 pharo-ui ArchC.image
 ```

...or do it by hand:

  1. Clone the repository

    git clone https://github.com/shingarov/Pharo-ArchC ArchC
    
  2. Get PDLs:

    cd ArchC
    ./get-pdls.sh
    

    Alternatively, you may symlink pdl directory wherever you keep your PDLs

  3. Download Pharo

    mkdir ArchC/pharo
    cd ArchC/pharo
    
    # Be carefull, running a script downloaded from internet is not advisable!
    curl https://get.pharo.org/64/80+vm | bash
    
  4. Load code into Pharo image:

    ./pharo Pharo.image save archc
    ./pharo archc.image metacello install tonel://../src BaselineOfArchC
    ./pharo archc.image eval --save "(IceRepositoryCreator new location: '..' asFileReference; createRepository) register"
    

...into Smalltalk/X

NOTE: Following instruction assume you recent Smalltalk/X jv-branch , i.e., version newer than 2020-09-15 (older versions might not have Tonel support built).

  1. Install MachineArithmetic. Follow instructions in README.md

  2. Clone the repository:

    git clone https://github.com/shingarov/Pharo-ArchC.git.git
    
  3. In Smalltalk/X, execute:

    "/ Tell Smalltalk/X where to look for MachineArithmetic packages
    Smalltalk packagePath add: '/where/you/cloned/it/MachineArithmetic'.
    
    "/ Tell Smalltalk/X where to look for ArchC packages
    Smalltalk packagePath add: '/where/you/cloned/it/Pharo-ArchC/src'.
    
    Smalltalk loadPackage: 'BaselineOfArchC'.
    

About

Generate binutils from formal spec

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages