user2420649
user2420649

Reputation: 221

Creating an Application interface in C

I am developing an operating system from scratch for ARM processors in c and assembly. I have finished the kernel and I am beginning to start the userspace (an evironment where applications can be run). I am going to have my applications programmed in C and compiled in gcc.

P.S. Also sorry how the question was phrased. It was difficult to explain

Upvotes: 1

Views: 102

Answers (1)

Martin James
Martin James

Reputation: 24847

1) 'come out as a specific file format' - usually, the linker does that. Look at your linker options.

2) I don't know - it's your OS! Basically, inspect the executable header to find out what resources are required, allocate them, read in the sections that need to be loaded, zero those sections that need to be zeroed, relocate sections that need to be relocated, find the code start address, create a thread to run it.

Upvotes: 2

Related Questions