Shop OBEX P1 Docs P2 Docs Learn Events
Propeller GCC — Parallax Forums

Propeller GCC

I am trying to setup propeller GCC on my pc. I am using the following webpage :
https://github.com/dbetz/propeller-gcc
I am getting stuck at :

"After cloning the propeller-gcc repository and updating the submodules you need to fetch some additional libraries needed to build GCC. Doing this requires that you have wget available on your machine.

cd propeller-gcc/gcc
./contrib/download_prerequisites
"

I have downloaded and installed wget on my pc. However when I type
cd propeller-gcc/gcc
./contrib/download_prerequisites
in git shell I am not getting anything. Can you help me with this problem? Thanks.

Comments

  • The error message says you need wget. Do you have wget?

    What error message is "./contrib/download_prerequisites" giving you?

    "git shell": does that mean you're using Windows? If you can't find wget for windows, you might need to figure out what wget would download if you had it and download the stuff manually and put it where wget would put it.
  • constantine34, if you just want to download the pre-built binaries you can do this from parallax.com . Type "SimpleIDE" into the search engine and it will bring up the links for the Linux, Windows and Mac download pages. SimpleIDE contains an IDE that includes the PropGCC compiler and libraries. It also contains additional libraries and source code for interfacing to various types of devices.

    I don't think Parallax distributes PropGCC separate from SimpleIDE, so downloading SimpleIDE is the only way you get PropGCC directly from them. Of course, you can download the source code from github and build it yourself, but as you've found this requires other things on your system to build it.
  • Though I'm not affiliated with Parallax, I do provide up-to-date builds of PropGCC for Windows, 64-bit Linux, and Raspberry Pi. Links to these builds can be found in a number of places, including here: http://david.zemon.name/PropWare/RelatedLinks.xhtml.
  • DavidZemon, thanks for the link you have provided. I have downloaded the propellergcc-alpha_v1_9_0-gcc4-win32 file and unzipped it. However I couldn't find the installation file. Can you tell me which one is the installation file? Thanks.
  • No install file. Just unzip and run.

    Are you familiar with building C/C++ applications on Windows? If not, I would highly recommend you use SimpleIDE because it takes care of all the hard parts. Setting up an environment for an embedded system is one of the hardest things I've done as a programmer. When the company provides a ready tool like SimpleIDE that does it for you, often times its worth using.
  • DavidZemon, thanks for your reply. Yes I am familiar with building C/C++ applications
    on windows and setting up environments for embedded systems. I have used Microchip PIC and Atmel AVR MCU's before.
    If there is no install file, which file am I going to use to run propeller gcc? Thanks.
  • GCC is a suite (collection) of applications, so there is no one file to "run propeller gcc". It stands for "GNU Compiler Collection". The most common application in the collection would be gcc because it wraps the other tools like ld, as, and cpp. You'll find it in two places: <root>/bin/propeller-elf-gcc and <root>/propeller-elf/bin/gcc. Most folks use <root>/bin/propeller-elf-gcc.

    Why are you not using SimpleIDE? Do you have a different editor that you prefer to use?
  • DavidZemon, I have downloaded and set up one version of Simple IDE. It is Simple IDE version 1.0.2(RC2). Does Simple IDE upload the binary file or elf file to the Propeller Chip when I hit the Load RAM or Load EEPROM button? Also, with PICs and AVRs we load hex files to the chips. Does Simple IDE not produce hex files when we build a project? Thanks.
  • Does Simple IDE upload the binary file or elf file to the Propeller Chip when I hit the Load RAM or Load EEPROM button?

    That's correct. LOAD RAM or LOAD EEPROM load the binary to the HUB RAM or the EEPROM.
  • SimpleIDE puts the ELF and binary file in a subdirectory that has the name of the memory model (such as lmm or cmm). I don't believe SimpleIDE generates a HEX file, but this could be done using the Prop tool if necessary.
  • If you click the little 'hammer' at the bottom of the SimpleIDE window, it opens a 'debug window' that, when you press 'compile' (or any other command, really) shows you what it's doing on the commandline behind the curtains. :)
Sign In or Register to comment.