Archives

Category: College

Compiling GCC 4.3.6

College, Compilers, FYP, Linux, Technology

Today I needed to compile a copy of gcc 4.3.6 from source in order to successfully build ACCGen, though there are many other reasons you would like to do this. Much of this is based on an article located here. First download gcc, gmp, mpfr and mpc: wget http://ftp.gnu.org/gnu/gcc/gcc-4.3.6/gcc-4.3.6.tar.gz wget ftp://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.gz wget ftp://ftp.gnu.org/gnu/mpfr/mpfr-2.4.2.tar.gz wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz […]

Compiling SystemC on Fedora with GCC 4.8

ADL, College, Compilers, FYP, Technology

I had some difficulty getting SystemC to compile on Fedora 19 and gcc 4.8.1. After configuring correctly, make issued the following error: In file included from ../../../src/sysc/datatypes/bit/sc_bv_base.h:50:0, from ../../../src/sysc/datatypes/bit/sc_lv_base.h:56, from sc_signal.cpp:102: ../../../src/sysc/datatypes/bit/sc_bit_proxies.h:716:16: error: reference ‘m_obj’ cannot be declared ‘mutable’ [-fpermissive] mutable X& m_obj; ^ ../../../src/sysc/datatypes/bit/sc_bit_proxies.h:1193:18: error: reference ‘m_left’ cannot be declared ‘mutable’ [-fpermissive] mutable X& […]

Slot Machine Game

C, College, Languages

I wrote a slot machine game for a college project over the last week or two. The specification was as follows: For this assignment, you are asked to implement a command line version of a slot machine in C. The slot machine consists of three columns, and each column can hold one of three possible […]

The Essence of Computer Science

College, Languages

This is my end of semester essay for CS. Oh and the thing about me not knowing what programming languages were before college is untrue but it adds to the essay! The Essence of Computer Science – that is what I am here to learn. Through the few weeks of college, we were given an […]