English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 29 October 2012, 04:38   #1
Vegas
Registered User
 
Vegas's Avatar
 
Join Date: May 2010
Location: Ulm / GER
Posts: 82
Setting up StormC 3

Hallo everyone! Since i am doing some programming lessons at college right now, i thought it might be fun to write something on the Amiga for a change. Unfortunately i didnt get very far. I ran into some troubles setting up StormC 3, that i found at Amiga Future (http://www.amigafuture.de/downloads....af75dd74788101) and was now hoping someone could maybe help me out.

I was able to install the package using the fixed installer from AmigaFuture. Then StormC would boot for only one time. After reset i kept getting ramlib errors. I tried several options, but with the same result.

Also the install messed up my Ramdisk icon for good, which isnt bad but weird somehow... I am using an Amiga1200 with Blizzard 1230/50, 16 MB Fast and Fpu, KS/WB 3.1 and also ClissicWB lite, which should be fine from as far as i read.

What did i miss? Has anyone experienced this alsready or has a clue? Thanks in advance, Cheers!
Vegas is offline  
Old 31 October 2012, 13:19   #2
Vegas
Registered User
 
Vegas's Avatar
 
Join Date: May 2010
Location: Ulm / GER
Posts: 82
Still no luck getting it to run on the 1200. I ran a memory check, but it seemed ok (i have not much experience with this). Then I tried several re-installs, with and without the Blizzard. When i set it up in Winuae, everything worked fine. I ran out of ideas at this point...
Vegas is offline  
Old 31 October 2012, 13:45   #3
funK
Registered User
 
Join Date: Sep 2011
Location: ItAlien
Posts: 170
Give up with that crappy compiler already, no one uses it, that's why you got no reply.
Try vbcc, gcc v2.95.3 or sas/c instead.
funK is offline  
Old 04 November 2012, 21:07   #4
Vegas
Registered User
 
Vegas's Avatar
 
Join Date: May 2010
Location: Ulm / GER
Posts: 82
I chose stormc 3 just because i found a little tutorial that is making use of it. Whats the problem with it?

At some point i was worried, that it might be a hardware issue. That was one reason for my post.

Anyway, thank you for the suggestions!
Vegas is offline  
Old 05 November 2012, 13:25   #5
funK
Registered User
 
Join Date: Sep 2011
Location: ItAlien
Posts: 170
Well, I haven't done any StormC v3 test myself to see if that's true, but once I read somewhere that generated code is far worse than what you get with the other Amiga compilers.
Plus, if h&p themselves ditched their own closed source compiler in favour of the open source gcc in StormC v4, and even wrote this remark in the manuals coming with it:
Quote:
Installing StormC4, you also got the compilers of the StormC3 development environment. In the project-settings you can select, if you want to use the old StormC3 compilers or the new GNU-C based compilers. We advice you to use the new GNU-C based compilers. These compilers generate more accurate warnings* and thus help to make faultless programs. Your sources that compiled fine with StormC3 may need some revision to be compiled with the GNU-C based compilers without errors and warnings. But it's worth the effort. You should use the old StormC3 only, if you really need their codegeneration. These compilers will no longer be supported by HAAGE&PARTNER.
then we can safely assume they knew there was something particularly crappy/broken in their compiler.

* I think they chose to use the word "warnings" here because their marketing division told them that writing "code" instead would have been too close to reality, and we all know that PR alternate reality always wins!
funK is offline  
Old 05 November 2012, 16:56   #6
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
I use StormC 4 (among others), usually in StormC 3 mode. It has its good and bad points like most other compilers.

You could check the official mailing list (http://amigan.1emu.net/aw/stormc-l.zip) to see if others have had this issue.

I'm willing to investigate and help with this issue but I would likely need a very detailed and specific bug report.
Minuous is offline  
Old 06 November 2012, 11:13   #7
funK
Registered User
 
Join Date: Sep 2011
Location: ItAlien
Posts: 170
@Minuous

Genuine question: since you actually use it and probably made some tests/benchmarks too, what's the advantage(s) you think StormC 3 has over the other Amiga compilers?
funK is offline  
Old 07 November 2012, 04:27   #8
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
I also use StormC V4 but I use it in gcc mode.

I found it very easy to setup and get going with new projects, give up on 3 and move up to version 4
NovaCoder is offline  
Old 08 November 2012, 00:39   #9
Vegas
Registered User
 
Vegas's Avatar
 
Join Date: May 2010
Location: Ulm / GER
Posts: 82
@funk: Ok, this sounds like they dont really trust their own product too much anymore.

@Minuous: Thanks for the link, i will check it!

Quote:
Originally Posted by Minuous View Post
I'm willing to investigate and help with this issue but I would likely need a very detailed and specific bug report.
What would you need specificly?

@NovaCoder: Thanks for the suggestion. I liked the idea of having a nice ide with everything already set up, working out of the box... Well, obviously my Amiga disagreed. Anyway, StormC 4 is not free to use, afaik.

Meanwhile i continued doing some tutorials under winuae and i must say its a little more comfortable, to be honest. As i said, im not going for any fancy stuff. At the moment, i managed to open an empty window
Vegas is offline  
Old 08 November 2012, 12:42   #10
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
Quote:
Originally Posted by funK View Post
@Minuous

Genuine question: since you actually use it and probably made some tests/benchmarks too, what's the advantage(s) you think StormC 3 has over the other Amiga compilers?
The main two would be the Integrated Development Environment and (somewhat buggy) 64-bit arithmetic support. It is also useful for producing WarpOS code, though I must admit I have not used it for this purpose myself. These would be the main advantages when compared with something like SAS/C. Bad points would be that there are various bugs in it, and the compilation speed and the size of the resulting executable are generally inferior when compared against SAS/C.

As to what I would need to help resolve issues, "StormC would boot for only one time" is not really specific enough, what exactly happened? Eg. did you get a guru number, if so, which? If I understand correctly it is working fine under WinUAE but not on your A1200?

Have you searched the mailing list? Also there is a list of known issues (regarding StormC 4, but probably most also apply to V3) at http://amigan.1emu.net/releases/ami-code.txt

Last edited by Minuous; 08 November 2012 at 12:49.
Minuous is offline  
Old 08 November 2012, 22:38   #11
Vegas
Registered User
 
Vegas's Avatar
 
Join Date: May 2010
Location: Ulm / GER
Posts: 82
Post

@Minuous:

Thanks again for the hint. I have searched the mailing list and the ami-code.txt but havent found anything that could help me further. Looking at the protocol i wrote, i get the feeling that the problem could be really simple...

As i said, everything worked fine in winuae, what i forgot to mention was, that my winuae setup runs wb3.9 while the original Amiga runs 3.1. In my defence, until now i found no requirment note that says: wb 3.9 needed

I case, thats not it, here is some more information on what i did:

- assign AmigaFuture dir
- start "PrepairStormCinstall" (the fixed version from AmigaFuture site)
- error: cant rename ram:Stormc/Stormc_3_0 as ram_:StormC/Stormc_3_0 because oject not found
- says "ready to install" anyway
- ram-icon turns into stormc-icon (and wont change anymore after reboot)
- start ram:install_stormc_hd -> error: "cant open script"
- icon -> information -> change "SCRIPT=StormC Install-script" to actual name of install script
- start start ram:install_stormc_hd again, installation starts
- error: "unable to locate file/drawer "Stormc_3.0" not found, line 786"
- rename ram:StormC_3_0 to ram:StormC_3.0
- start start ram:install_stormc_hd again -> installation finishes
- installation protocoll is empty
- start harddisk/stormc/stormcpp
- error: "ramlib programmerror number 80000003 / wait for finishing disk activity"
- reboot
- guru: "error number 80000003 / task 0D01E048

On a different approach, i tried to avoid the first error by running "PrepairStormCinstall" twice and renaming ram_:StormC/Stormc_3_0 to ram_:StormC/Stormc_3.0 manually. It caused the install to run without errors. Unfortunately with the same guru when triying to run stormcpp.
Vegas is offline  
Old 10 November 2012, 00:57   #12
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
>In my defence, until now i found no requirment note that says: wb 3.9 needed

OS3.1 should be OK as StormC 3.0 (1997) predates OS3.5 (1999). Although I would suggest running OS3.9 on that machine anyway.

I'll try a test installation and see if I can reproduce and work around the issues.
Minuous is offline  
Old 10 November 2012, 01:24   #13
davideo
Amiga Tomcat
 
davideo's Avatar
 
Join Date: Sep 2007
Location: Boston Lincs
Posts: 1,500
@Vegas

Don't use the preparestormcinstall.

In my case I unpacked it into a temporary place.

Then CD to the StormC directory within that temporary place.

Rename Stormc_3_0 to Stormc_3.0. There are also a couple of other files that need renaming in the same way.

Open the Icon Install_stormc_hd_english and change the entry SCRIPT to be SCRIPT=StormC_Install_Script

Twice through the install you will have to reassign StormC to the directory you are installing it into.

After that you should be good to go.

Or at least I was the other night

Dave G
davideo is offline  
Old 11 November 2012, 03:11   #14
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Quote:
Originally Posted by Vegas View Post
- guru: "error number 80000003 / task 0D01E048
That's an odd address error which you only get on 68000 CPU's as later ones (certainly 68020+) can handle instructions starting on odd addresses.
Lonewolf10 is offline  
Old 11 November 2012, 10:50   #15
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,503
Quote:
Originally Posted by Lonewolf10 View Post
That's an odd address error which you only get on 68000 CPU's as later ones (certainly 68020+) can handle instructions starting on odd addresses.
You probably meant data, not instructions because jump to any odd address will cause address error on all m68k CPUs.
Toni Wilen is online now  
Old 14 November 2012, 20:45   #16
Vegas
Registered User
 
Vegas's Avatar
 
Join Date: May 2010
Location: Ulm / GER
Posts: 82
I set up os 3.9 on the amiga and everything ran fine. So, it looks like the problem really was os 3.1. I have no idea why, but it works now
Vegas is offline  
Old 15 November 2012, 22:17   #17
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Quote:
Originally Posted by Toni Wilen View Post
You probably meant data, not instructions because jump to any odd address will cause address error on all m68k CPUs.
oops!
Lonewolf10 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
StormC V4 sleep() implementation Vot Coders. C/C++ 3 26 May 2013 16:23
StormC V4 gcc - ixnet how to? NovaCoder Coders. C/C++ 1 28 February 2012 03:07
Need help: StormC 3 AlfaRomeo Coders. General 27 10 October 2008 11:31
StormC V4 Oneillsite request.Apps 4 06 October 2006 22:49
StormC V4 FromWithin Coders. General 13 24 July 2005 16:20

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:29.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10773 seconds with 15 queries