Welcome, Guest. Please login or register.

Author Topic: Odd programming question  (Read 6576 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline trekiejTopic starter

Odd programming question
« on: March 09, 2008, 06:37:46 PM »
Outside of header files and libraries, when does OS specific information get added?
When I run a programm, how does  the OS allocate memory and give control to the application and the application give it back.
The OS gives the application access to resources, how does it know what to give?
Source > Object > linking > Binary
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #1 on: March 09, 2008, 07:42:40 PM »
Thanks alot.  I want to know more about OS and Application interactivity.

I guess I need to find out how a kernel works to get the info. in need.  As CSI Grissom would say, I am looking for the right question.

I know I have asked a similar question before and it led to System Calls.  I want to know how my application gets to the real world and there seems to be more than one answer.

What I wish I could do is learn how to use the header files and libraries to make a window to put my app.
Right now making a console app on an Amiga will do.
I wish they would teach Amiga Dos in college.

Windoz,Windoz,Windoz  :-(
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #2 on: March 09, 2008, 08:05:47 PM »
I feel like there is information added during compile time that the user does not have to provide.

Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #3 on: March 09, 2008, 08:15:03 PM »
@ Piru:
Maybe that is what gets me.   :-D
Learning C in an intro class we used include iostream.h to get I/O.
How does iostream.h work?
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #4 on: March 09, 2008, 08:31:05 PM »
Alright, thanks.
I will put this on the back burner.
I will look into how to work with libraries, etc.
I can not seem to get my c++ finished.  I guess I can still work with the Amiga without it.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #5 on: March 09, 2008, 10:44:21 PM »
Is making a basic console program easy to do?
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #6 on: March 09, 2008, 10:55:28 PM »
For Amiga, nothing.  I am looking to use StormC.
GCC for linux.
AmiDevCPP for widows. (AROS)
Murks IDE
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #7 on: March 09, 2008, 11:59:19 PM »
@Samurai Crow
Looks like you are working on something interesting.
Also, when the program gets changed to binary is there anything else the compiler does?

@Trev
Sure I knew that about AmiDev. :oops:
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #8 on: March 10, 2008, 03:20:35 AM »
Thanks
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #9 on: March 10, 2008, 06:42:07 PM »
Compiler, linker, assembler are not a problem.  It is how the OS looks at and responds to the program.  I wish I had a explanation of all that happens when a program loads.  This is imo different for different OS.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #10 on: March 10, 2008, 09:29:52 PM »
I appreciate all replies.

In the end I guess I will need to get into Kernel Dev to get the full understanding.

On a side note, do files have headers.  I do not mean xxx.h in a C program.  Is this not how an OS knows the difference between files?
@Karlos:
That is where I want to head with this.  I may get into Kernel Dev. with Linux but may go a non-programming route with my career.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: Odd programming question
« Reply #11 on: March 10, 2008, 10:15:35 PM »
@Einstein: Maybe one day I will.  I have too much to do and need a job to go further.  I have a part-time job but it is not enough.  I like too much technology and need to pick one and go with it.
Amiga 2000 Forever :)
Welcome to the Planar System.