Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
152 user(s) are online (111 user(s) are browsing Forums)

Members: 0
Guests: 152

more...

Headlines

Forum Index


Board index » All Posts (mechanic)




Re: Integer in source code
Just popping in
Just popping in


Quote:

Aslak3 wrote:
http://stackoverflow.com/questions/22 ... as-loop-counter-variables

In general for "average" or indistinct integer vales, use int as it matches the width of machine registers.

Lawrence

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
Go to top


Re: Integer in source code
Just popping in
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
Go to top


Re: Integer in source code
Just popping in
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
Go to top


Re: Integer in source code
Just popping in
Just popping in


Thanks guys.

It was just one of those questions that seemed to come from ...... wherever????

A1-X1000
Go to top


Integer in source code
Just popping in
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
Go to top


Re: AmigaOS 4 development on Linux.
Just popping in
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
Go to top


Re: AmigaOS 4 development on Linux.
Just popping in
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
Go to top


Re: AmigaOS 4 development on Linux.
Just popping in
Just popping in


Told you I was thick headed. I'll be back.

A1-X1000
Go to top


Re: AmigaOS 4 development on Linux.
Just popping in
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
Go to top


Re: AmigaOS 4 development on Linux.
Just popping in
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 16:53:46
A1-X1000
Go to top


Re: AmigaOS 4 development on Linux.
Just popping in
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
Go to top


Re: AmigaOS 4 development on Linux.
Just popping in
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
Go to top


AmigaOS 4 development on Linux.
Just popping in
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
Go to top


Re: Timberwolf RC3 available
Just popping in
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
Go to top


Re: Timberwolf RC3 available
Just popping in
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
Go to top


Re: XDE
Just popping in
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
Go to top


Re: XDE
Just popping in
Just popping in


I asking about the development tools available from XMOS for Linux, windows, and x86 Mac computers. It's a free download from XMOS.

http://www.xmos.com/products/development-tools

A1-X1000
Go to top


XDE
Just popping in
Just popping in


Anybody here using the Xmos Development Environment?


A1-X1000
Go to top


Re: Timberwolf RC2 available
Just popping in
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
Go to top


Re: Thank you for OS4, hardware, and software
Just popping in
Just popping in


Ditto, ditto.
..Ditto, ditto, and YES!

A1-X1000
Go to top



TopTop
« 1 2 3 (4) 5 6 7 ... 10 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project