English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language

 
 
Thread Tools
Old 05 September 2016, 22:55   #21
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,751
Quote:
Originally Posted by idrougge View Post
Thorham, I know you use an editor that can handle that for you.
It's probably possible to set it for that, but I can't be bothered. Also, doesn't E handle everything as 32bit integers?
Thorham is offline  
Old 05 September 2016, 23:01   #22
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
It has typeless storage for pointers in long variables, yes.
Samurai_Crow is offline  
Old 07 September 2016, 11:14   #23
Twiggy
\m/
 
Twiggy's Avatar
 
Join Date: Nov 2008
Location: Devon, U.K.
Posts: 573
I guess it's worth adding that there isn't much in the way of tutorials/documentation for Blitz2 as there is for C.
Twiggy is offline  
Old 07 September 2016, 12:14   #24
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
Yeah, that's absolutely true. You have a starting point here, at least: http://www.david-mcminn.co.uk/blitz-...chives/system/
idrougge is offline  
Old 07 September 2016, 12:47   #25
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
There's quite a bit of Blitz material available on http://www.amigacoding.com as well, along with some reference material and links on other languages. But given that C is the closest suited to the Amiga API and is also one of the most popular languages on any platform, there will be far more in the way of reference materials and tutorials available than for Blitz.
Daedalus is offline  
Old 08 September 2016, 01:16   #26
TroyWilkins
Registered User
 
TroyWilkins's Avatar
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
Ok, it looks to me like C may be the way to go, thank you so much everyone! I've had a bit of a read and what I've found doesn't seem like it's beyond me, so I'll be installing SAS/C under WinUAE and trying that out - I'm keen, but not THAT keen as to run it on a floppy-only A600 (still waiting for the parts to arrive to give it a hard disk, also waiting for the 1MB upgrade I've ordered and paid for)...

http://amigacoder.x10.mx/tutorial/simple_window.html

This is where I'm starting from, as I had no trouble understanding lesson 1.

Last edited by TroyWilkins; 08 September 2016 at 01:36.
TroyWilkins is offline  
Old 08 September 2016, 05:37   #27
TroyWilkins
Registered User
 
TroyWilkins's Avatar
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
Ok, perhaps SAS/C 6.5x wasn't the best choice for someone new to C, does anyone have any good suggestions please?
TroyWilkins is offline  
Old 08 September 2016, 06:12   #28
existentia
Registered User
 
Join Date: Nov 2013
Location: Cyberia
Posts: 8
I just installed VBCC, and it was a bit easier to get started with.
existentia is offline  
Old 08 September 2016, 07:38   #29
TroyWilkins
Registered User
 
TroyWilkins's Avatar
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
Quote:
Originally Posted by existentia View Post
I just installed VBCC, and it was a bit easier to get started with.
Ahh, cool, thank you, I'll give that a go, along with DICE...
TroyWilkins is offline  
Old 08 September 2016, 11:44   #30
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
What's wrong with SAS/C? Did you use the package found here on EAB?
idrougge is offline  
Old 08 September 2016, 12:15   #31
TroyWilkins
Registered User
 
TroyWilkins's Avatar
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
Quote:
Originally Posted by idrougge View Post
What's wrong with SAS/C? Did you use the package found here on EAB?
Yes, got the package from here, installed then updated, did all the updates other than the Y2K one... I'm a complete n00b and couldn't see how to compile a program. If anyone has a beginners guide or could give me a quick run down on how to use it, that would be very much appreciated, and yes, I know I'm being a complete and utter n00b, and probably very annoying, and I apologise for that.
TroyWilkins is offline  
Old 08 September 2016, 12:56   #32
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Don't apologise, sometimes these things are tricky if you've never done anything like it before. Part of C's strength is also its weakness: its flexibility and modular approach means that there are many options that need to be taken into account, and these often mean the whole compilation process is carried out using command-line tools. A makefile can simplify this but for starting off that shouldn't be necessary, you should be just able to compile and go.

I've never used SAS/C (I tend to use Dice or GCC), but from memory the editor it comes with actually has a compile menu to run the compiler in the background so building your program should be as simple as saving the source file and choosing build or compile from the menu. If this doesn't work, perhaps there are some issues with the installation or preferences - there are most likely paths and/or assigns to be set and so on.
Daedalus is offline  
Old 08 September 2016, 14:09   #33
TroyWilkins
Registered User
 
TroyWilkins's Avatar
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
Thank you for understanding, I really appreciate it. I'm half expecting someone to scream RTFM at me any minute, and I had a look at the manual, but it looks like the sort of thing best read on physical paper, and I don't really want to print out all those pages if I can help it, I can't remember how many, but lots comes to mind.

Perhaps Dice or GCC may be more suitable for me? If anyone has the time and wouldn't mind giving a bit of a guide to whatever they use, that would be VERY much appreciated.

I just had a look and couldn't see any compile option in the editor.




TroyWilkins is offline  
Old 08 September 2016, 14:28   #34
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Hmmm, that's not the editor I remember, but like I said, I don't use it so perhaps I'm thinking of some other compiler setup. Otherwise it's a matter of running the compiler from the command line.

Dice and GCC won't be any easier, they are generally run from the command line too so I would say stick with SAS/C since you have it set up and see what the documentation says about compiling using the Shell. For that program it should be a simple one-line command.

Edit: Here's what looks like a good guide: http://www.pjhutchison.org/tutorial/sas_c.html
It mentions Right-Amiga-B for building, which suggests there's another menu that needs to be activated in your editor, possibly by creating the project icons as described on that page.
Daedalus is offline  
Old 08 September 2016, 14:42   #35
TroyWilkins
Registered User
 
TroyWilkins's Avatar
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
Fair enough, I'm not locked into any particular option at this stage, and don't mind using the command line instead of that is better supported. I think I'll copy the documentation to my phone so I can read it anywhere and have it on a different screen. I've installed Dice 3.16 as well. So I'll also copy the documentation for that to my phone too and have a good read.

- offtopic - Back when Amigas could be purchased brand new and still have a warranty from Commodore, I doubt any of us would have dreamed in our lifetimes we'd carry around a device with a 5.7” screen showing 1440 x 2560 pixels, an octa-core CPU @ over 1.5GHz, 3GB of RAM, 32GB of storage... And yet, here I am wanting to write programs to run on a 7MHz 68000 on a 640x256 screen in 1 or 2MB of RAM, using preferably little space, and thinking of using the supercomputer in my pocket as a dumb text display unit...
TroyWilkins is offline  
Old 08 September 2016, 17:17   #36
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
SaS/C should be simple enough.

Go to SAS folder. Select "starter_project" folder. Copy. Rename the new folder to "hello".

Enter the "hello" folder. Double-click edit.
Write your hello world snippet.
Select from menu Project/Rename. type "hello.c".
Select from menu Project/Save & Close.

Double-click build.

You should have a "hello" icon. Double click on that. Enjoy!
alkis is offline  
Old 08 September 2016, 17:33   #37
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
1. Just get the sasc658.lha archive, it's pre-patched and you just need to unarchive it and add some assigns.

2. Compiling a fairly simple program on SAS/C is just a matter of typing "SC file.c LINK" at the command line.
idrougge is offline  
Old 08 September 2016, 23:00   #38
bubbob42
Registered User
 
Join Date: Oct 2012
Location: Germany
Posts: 585
Or press f4 within the editor to compile and right-Amiga+b to build.

And yes, RTFM.
bubbob42 is offline  
Old 09 September 2016, 02:57   #39
TroyWilkins
Registered User
 
TroyWilkins's Avatar
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548
Ahhh... Thank you everyone. Now I realise where my confusion came from, I didn't realise that there were 2 steps involved, compiling and then building. I really appreciate everyones responses here to what must seem like stupid questions.
TroyWilkins is offline  
Old 09 September 2016, 03:42   #40
TroyWilkins
Registered User
 
TroyWilkins's Avatar
 
Join Date: Jan 2015
Location: Melbourne, Australia
Posts: 548

Success!
TroyWilkins 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
Amiga Coding: where to begin? Mr Softy Coders. General 27 01 March 2017 11:32
Amiga Emulation Beginner: Questions beaglelover New to Emulation or Amiga scene 1 18 February 2016 04:11
Got new amiga, some questions about coding defcon8 Coders. Asm / Hardware 2 06 April 2015 08:37
Any of you Coding on Amiga? Amiga Forever Coders. General 42 31 January 2012 02:58
Interested in coding on the amiga. Gandalf Coders. General 7 16 August 2011 10:30

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 16:37.

Top

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