Home Building AntSnes with GCCE 2009Q1-162
Post
Cancel

Building AntSnes with GCCE 2009Q1-162

I have been waiting for new GCCE patch from Nokia for ages. The old GCCE is based on GCC 3.4.3, which was originally published in November 2004. Forum.Nokia has a very good article how to hack your Symbian SDK to support newer GCCE versions. I have been testing the older version from 2008, but none of them really could build AntSnes. However the newest version can! It seems that codesourcer is going into right direction. I had to make some minor changes to the AntSnes code, but it seems to be working quite well.
One modification was for switch case statements. The GCCE 2009Q1 – 162 seems to be more firm about switch case statements. For example following code isn’t allowed anymore:

1
2
3
4
5
6
7
8
9
10
11
12
switch (a)
{
    case 1:
    if(my cond)
    {
        int i=0;
    }
    break;
    case 2:
        //mycase
    break;
}

The switch case must be written like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
switch (a)
{
    case 1:
    {
        if(my cond)
        {
            int i=0;
        }
    }
    break;
    case 2:
    //mycase
    break;
}

The new compiler doesn’t support -finline-functions optimization flag, so it might produce a bit slower code. However the compiler should have a lot of bugs fixed etc, so it could still be a lot faster.
Download the Sourcery G++ Lite 2009q1-162 and try it out! It worked really well for me.
I was testing the new compiler just fun, so I don’t know if anyone should use this build. If you want to try how much faster the new GCCE is, then you can try it. For all new users I would recomment the current AntSnes 0.63 release. However I think that the new GCCE build seems to be a bit faster with N96, so you are welcome to try it. Just don’t ask for bug fixes into this version, since there might be bugs caused by the unsupported compiler.
AntSnes gcce 2009q1 – 162 build: AntSnes_GCCE2009Q1_build.sis

This post is licensed under CC BY 4.0 by the author.

AntSnes 0.63 – Probably the best AntSnes release ever

The future of AntSnes

Comments powered by Disqus.