{{htmlmetatags>metatag-robots=() metatag-title=(How to build the compiler | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(You will find instructions on how to build the compiler) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(How to build the compiler | ugBASIC User Manual) metatag-og:description=(You will find instructions on how to build the compiler) }} ====== ugBASIC (Manuale Utente) ====== ===== HOW TO BUILD THE COMPILER ===== ==== FOREWORD ==== This is a step by step guide to download, compile and install the software needed to generate the "Commodore" targets. On [[ugbasic:targets|this page]] you will find the complete list of available targets. The compiler makes use of the ''ca65'' compiler to produce executables for the 6502 targets, while it uses the ''z80asm'' of z88dk compiler for others. As it makes use of advanced features, you need to install the latest version of each of these software. ==== LINUX ==== === Step 1: install gcc compiler === sudo apt install build-essential === Step 2: install CC65 compiler === git clone https://github.com/cc65/cc65.git cd cc65 make sudo -i export PREFIX=/usr/local make install exit === Step 3: generate the compiler (and the examples) === make target=c64 output=prg clean all ==== WINDOWS ==== //Work in progress// ===== POWERED BY ===== [[:ugbasic:user|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]