Who's Online |
27 user(s) are online ( 23 user(s) are browsing Forums)
Members: 0
Guests: 27
more...
|
|
|
|
Re: Integer in source code
|
Posted on: 2012/9/18 14:46
#61
|
Just popping in 
|
Quote: Generally speaking then, it looks like not much has changed in 30+ years. The size considerations mostly apply to memory usage and serial lines/lanes. Er,,,,Generally.
|
A1-X1000
|
|
|
Re: Integer in source code
|
Posted on: 2012/9/18 11:42
#62
|
Just popping in 
|
Okay. So lets say for X1000 and one of the Sam boards (your choice).
Does using smaller values offer any efficiency, other than moving bits down a pipe?
(talking platform only)
|
A1-X1000
|
|
|
Re: Integer in source code
|
Posted on: 2012/9/17 20:27
#63
|
Just popping in 
|
Quote: LiveForIt wrote: int8 is what we call a "char" int16 is what we call a "short".
16bit unsigned hex number 0xFFFF is not -1, but a signed 16bit hex number 0xFFFF is -1.
That makes sense, gotta put the sign someplace. Thanks 
|
A1-X1000
|
|
|
Re: Integer in source code
|
Posted on: 2012/9/17 18:25
#64
|
Just popping in 
|
Thanks guys.
It was just one of those questions that seemed to come from ...... wherever????
|
A1-X1000
|
|
|
Integer in source code
|
Posted on: 2012/9/17 17:10
#65
|
Just popping in 
|
If its in the docs I missed it.
If using 'int' instead of 'int8' (16,32,or 64) what size 'int' is used?
Seems like it should be 8.
|
A1-X1000
|
|
|
Re: AmigaOS 4 development on Linux.
|
Posted on: 2012/9/14 10:36
#66
|
Just popping in 
|
Quote: Vulture wrote: @mechanic
don't be so hard on yourself mech! :)
I usually leave that up to the wife, but this was another of those instances where you do something silly and look around wondering if somebody seen you do it. Like the time I stepped off my bike without putting the side stand down. DOH!
|
A1-X1000
|
|
|
Re: AmigaOS 4 development on Linux.
|
Posted on: 2012/9/13 18:16
#67
|
Just popping in 
|
Quote: salass00 wrote: @mechanic
Obviously I wasn't clear enough. You need to **rename** the **directory** "/SDK/Include" to "/SDK/include".....
Stupid, stupid, stupid.......... 'make a directory called SDK there, case is important.' So I made sure sdk was SDK. Then stopped right there. I guess I really am one of those people that needs everything driven into my head with a heavy hammer. Changed SDK/Include to SDK/include and AOK. I use ppc-amigaos-gcc test.c -o test -lauto and so far so good. Thank you, thank you, thank you.
|
A1-X1000
|
|
|
Re: AmigaOS 4 development on Linux.
|
Posted on: 2012/9/13 16:59
#68
|
Just popping in 
|
Told you I was thick headed. I'll be back.
|
A1-X1000
|
|
|
Re: AmigaOS 4 development on Linux.
|
Posted on: 2012/9/13 16:41
#69
|
Just popping in 
|
Quote: salass00 wrote: Quote: #include </SDK/Include/include_h/exec/types.h> #include </SDK/Include/include_h/dos/dos.h> #include </SDK/Include/include_h/classes/window.h> #include </SDK/Include/include_h/gadgets/button.h>
The path to the OS includes should be "/SDK/include/include_h" (lower case "i" in "include" directory name) as stated in the instructions
Yes I do understand about cAsE. But, that (above) works. This, below, does not work. #include <dos/dos.h> #include <classes/window.h> #include <gadgets/button.h> #include <gadgets/layout.h> and to have a path to every file/function in the SDK listed in the source code is simply not going to be any fun at all. I will change the 'Include' to 'include' and be back.
|
A1-X1000
|
|
|
Re: AmigaOS 4 development on Linux.
|
Posted on: 2012/9/13 15:34
#70
|
Just popping in 
|
ppc-amigaos-gcc test.c -o test Also with various switches like -lauto. Got an Idea? I'll try it.  these are the type of errors I get; /SDK/Include/include_h/classes/window.h:18:31: error: reaction/reaction.h: No such file or directory
Edited by mechanic on 2012/9/13 15:53:46
|
A1-X1000
|
|
|
Re: AmigaOS 4 development on Linux.
|
Posted on: 2012/9/13 14:37
#71
|
Just popping in 
|
Yes, to all questions.
If I do the following it finds the needed files, but ......thats crazy.
#include </SDK/Include/include_h/exec/types.h> #include </SDK/Include/include_h/dos/dos.h> #include </SDK/Include/include_h/classes/window.h> #include </SDK/Include/include_h/gadgets/button.h>
I have tried making various links in various places without luck. I also imagine this is only the first of several problems.
P.S. If I seem rather thick headed for some of what you guys are talking about,, it is because I am.
|
A1-X1000
|
|
|
Re: AmigaOS 4 development on Linux.
|
Posted on: 2012/9/13 10:20
#72
|
Just popping in 
|
Quote: LiveForIt wrote:
do you find the header files, when you compile?
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/intuition.h>
int main()
{
}
Normally you can compile whit -lauto -lraauto flas, but don't know if that works whit a cross compiler, if not you will need to OpenLibrarie's and OpenClass's manually.
Do you get any errors?
Yes. No header files. The problem is the compile process is not finding the /SDK. It will build Amiga compatible C routines. I have followed zerohero's instructions (several times). It will build 'Hello world', but no ReAction stuff. It reports something like 'reaction.h no such file or directory'. I do not have any windows computers, so no cygwin. I wonder if I could add some kind of #include statement to the programs to find the /SDK directory? Any hints? Too early, I need more coffee. Thanks Guys.
|
A1-X1000
|
|
|
AmigaOS 4 development on Linux.
|
Posted on: 2012/9/12 21:08
#73
|
Just popping in 
|
AmigaOS 4 development on Linux.
I have been attempting to setup a AmigaOS development environment on X86 Linux.
I can get it to compile C progs for Amiga, but none that require Amiga specific stuff like ReAction windows. Yes, I have the SDK installed, links made, export path, etc..
Does anybody have a working cross-compile setup on Linux?
|
A1-X1000
|
|
|
Re: Timberwolf RC3 available
|
Posted on: 2012/9/6 16:41
#74
|
Just popping in 
|
I just finished formatting one of my spare partitions to SFS/00 and installed the new release there using my CurrentUserProfile (still) from RC1.
It does load slightly slower, but everything works the same as on SFS/02, including saving bookmarks.
On either partition type, the first run of TW will exit without a GR. Following exits produce a GR for NSPR thread 4 not shutting down. However, clicking kill in GR shuts down the thread and everything is AOK. :)
|
A1-X1000
|
|
|
Re: Timberwolf RC3 available
|
Posted on: 2012/9/5 20:49
#75
|
Just popping in 
|
Works great here. No problems. It's just fabulous! Never seen better. (now tell the witch to put the pin down, GEE-WHIZ, just had to stick me right THERE! ouch....)
|
A1-X1000
|
|
|
Re: XDE
|
Posted on: 2012/8/16 15:44
#76
|
Just popping in 
|
For those that may be interested in tinkering around with Xena in a small environment with no danger of screwing something up on Xena or Nemo, the XDE is a copy and paste, point and click, test and troubleshoot, virtual Xena wonder. At this time I'm running the XDE on a x86 with LinuxMint 13. Once I have made some mods to an existing Xena program I put the new program on a USB stick that contains the Amiga Xtools programs, plug it into X1000 and run it from the USB. No messing about transferring data or installing on X1000. It will not matter where the Xena side of X1000 programs are coded as it is its own small computer on a chip. So now is a good time to start with that side of putting her to work. It's probably the only chance I'll get to tell a female what to do, how to do it, and change her mind at my whim,,,,without having to pay the price later. 
|
A1-X1000
|
|
|
XDE
|
Posted on: 2012/8/15 19:16
#78
|
Just popping in 
|
Anybody here using the Xmos Development Environment?
|
A1-X1000
|
|
|
Re: Timberwolf RC2 available
|
Posted on: 2012/8/3 11:15
#79
|
Just popping in 
|
Quote:
I'm still a bit groggy from the operation
I do hope it was not a problem with your trigger finger. And remember, chicken soup. Lots of chicken soup.
|
A1-X1000
|
|
|
Re: Thank you for OS4, hardware, and software
|
Posted on: 2012/7/12 18:23
#80
|
Just popping in 
|
Ditto, ditto. ..Ditto, ditto, and YES! 
|
A1-X1000
|
|
|