![]() |
![]() |
#1 |
Amos Basic
Join Date: Feb 2013
Location: Orleans | France
Age: 49
Posts: 85
|
Demoscene project using SAS/C
Hi all,
here's a small demo I released during the Outline 2015 demoparty in Netherlands : http://www.pouet.net/prod.php?which=65580 What is specific to this project :
If you are curious about the source code, I did everything on github : https://github.com/voitureblanche/projet-secret I hope you will enjoy watching it ![]() |
![]() |
![]() |
#2 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
Interesting. I'll give a try to that source. Thanks.
|
![]() |
![]() |
#3 |
ex. demoscener "Bigmama"
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,646
|
are you using audio.device for music playback then? ;-)
|
![]() |
![]() |
#4 |
Amos Basic
Join Date: Feb 2013
Location: Orleans | France
Age: 49
Posts: 85
|
Yes Sir
![]() I'm using "EASY-SOUND V2.00 by ANDERS BJERIN" that uses the audio device : https://github.com/voitureblanche/pr...outines.c#L321 |
![]() |
![]() |
#5 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,207
|
It'll be interesting to see what is possible with an up-to-date C compiler someday. ;-) (Even if it starts as a cross-compiler...)
https://github.com/SamuraiCrow/llvm-m68k |
![]() |
![]() |
#6 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
@Samurai_Crow Any update on LLVM 68k?
Do you think that it will see the light of the day? Kamelito |
![]() |
![]() |
#7 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,207
|
Currently, it is difficult to do separate banks of registers for pointers and integers on LLVM, as the 68k is set up with address and data registers. The link above is not only incomplete but also is based on an old version of LLVM which further complicates matters. The next version of LLVM may have a new organizational structure that will simplify matters. Also, my programming partner has 2 jobs already and a family so, as much as he'd like to work on an Amiga LLVM backend, he doesn't have much time to spare.
![]() I do still think about having competitive compiler infrastructure for the sake of softcores like the Vampire 2's Apollo softcore. Also, it would make existing accelerators stretch to the level of Assembly coding and bring LLVM-based projects such as WebAssembly to the Amiga as well. |
![]() |
![]() |
#8 |
Code Kitten
![]() Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
|
What a wonderful idea!
I have to see this demo! Thank you Kamelito for resurrecting the thread! |
![]() |
![]() |
#9 |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
Wow, thank you for that, this looks awesome, and it's exactly what I'm looking for!
![]() Sorry this is a bit of a necro, and even worse, it's to ask this total noob question: how do I convert this into a SAS/C project? I see there's a SCoptions file in the src subdirectory, which I should probably copy somewhere. Do I make a new project and then copy these files into it somehow? Help! ![]() |
![]() |
![]() |
#10 |
Coder/webmaster/gamer
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,686
|
I never bother with projects. There is a makefile there so it should be sufficient just to type "make".
|
![]() |
![]() |
#11 |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
You're probably right, I should learn how to build stuff using a makefile. I used to do it this way, but it's been a very long time, so please bear with me..
![]() For clarity, here's the complete makefile: Code:
# project directories EXE_DIR = $(CURDIR)/bin INC_DIR = -I$(CURDIR)/../m68k-amigaos/os-include/ -I$(CURDIR)/include/ OBJ_DIR = $(CURDIR)/build SRC_DIR = $(CURDIR)/src # implicit rule variables CC = m68k-amigaos-gcc CFLAGS = -noixemul -s -Os -Wall -fomit-frame-pointer -m68000 -msmall-code LDLIBS = -lnix13 # other OBJS = $(patsubst %.c,%.o,$(wildcard $(SRC_DIR)/*.c)) main: $(OBJS) @mkdir -p $(EXE_DIR) $(CC) $(CFLAGS) $(LDLIBS) $(OBJS) -o $(EXE_DIR)/main -include $(OBJS:.o=.d) # include dependency makefile %.o: %.c $(CC) -c $(CFLAGS) $(INC_DIR) $*.c -o $*.o $(CC) -MM $(CFLAGS) $*.c > $*.d .PHONY: clean purge clean: rm -f $(SRC_DIR)/*.o $(SRC_DIR)/*.d purge: rm -rf $(EXE_DIR) rm -rf $(OBJ_DIR) rm -f $(SRC_DIR)/*.o $(SRC_DIR)/*.d Code:
OBJS = $(patsubst %.c,%.o,$(wildcard $(SRC_DIR)/*.c)) I'll probably need to translate this makefile for use with smake. There's a couple of lines that worry me a little: Line 3: Code:
INC_DIR = -I$(CURDIR)/../m68k-amigaos/os-include/ Line 8: Code:
CC = m68k-amigaos-gcc Line 13: Code:
OBJS = $(patsubst %.c,%.o,$(wildcard $(SRC_DIR)/*.c)) TIA! (*) FYI, I've tried making a new project in sasc, and then copying all files of the distribution into it. When I ran/doubleclicked the Build command, it gave me the same line-13-error -- although there is an SCoptions file in there, which I thought was kind of the equivalent of a makefile. I could happily remove the SCoptions file, btw, and it would say the same thing. Only when I removed the makefile, it would say there are 'no files to compile'. But that's actually good for our purposes, right? ![]() |
![]() |
![]() |
#12 |
Coder/webmaster/gamer
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,686
|
Well, I don't normally use makefiles either ;-) If it was me I would replace the makefile with an AmigaDOS script to do the same thing.
>I don't think I have this; I've just got a blank install of SAS/C 6.58. Where do I look for those? System includes are in the OS3.9 NDK. |
![]() |
![]() |
#13 | |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
Quote:
![]() Of course, thanks! |
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moleman2 Demoscene | DDNI | Amiga scene | 1 | 04 September 2014 15:53 |
Natami project freezed, Tina project folded...what next?? | Bamiga2002 | Amiga scene | 52 | 21 May 2014 09:19 |
Building a project in SAS/C | Tiddlypeeps | Coders. General | 2 | 21 April 2010 11:48 |
Demoscene and .... consoles ?! | Another World | Retrogaming General Discussion | 11 | 07 June 2009 21:03 |
UK demoscene pics | Yesideez | Amiga scene | 12 | 16 September 2007 17:18 |
|
|