Page 1 of 1

files

Posted: Tue Jul 29, 2008 3:02 pm
by zbeos
do all my files got in the same folder or should i divide everything up into different folders?

Re: files

Posted: Tue Jul 29, 2008 3:07 pm
by 01000101
It's preference, and hardly worth asking in this forum.

Re: files

Posted: Tue Jul 29, 2008 11:04 pm
by NReed
while it is true that it is all a matter of preference and it is all up to the coder. I am running into a similar question of organization. So if some people could share their organization methods, some of us could learn from them.

Re: files

Posted: Tue Jul 29, 2008 11:31 pm
by blackcatcoder
I divided the parts as followed:

/boot
/modules
/fs
/fs/vfs
/kernel
/kernel/ELF
/kernel/cpu
/mm
/include

It's up to the coder, don't divide it too much, just find the right middle so it's self explaining where things are, and so that others can brwose it easily :)

Re: files

Posted: Wed Jul 30, 2008 12:22 am
by 01000101
/boot
/kernel
/drivers
/net
/filters
/experimental

Re: files

Posted: Wed Jul 30, 2008 2:09 am
by AJ
Hi,

If you are planning on going multi-architecture (even just x86-32 and x86-64), it's worth making a strong distinction between "core" and architecture dependent files - and there must, of course, be a nice clean interface between the two (think of anyone wanting to port to a different architecture in the future...it could happen!).

Cheers,
Adam

Re: files

Posted: Wed Jul 30, 2008 4:06 am
by Korona
Applications/<Name>/
Bootstrap/Binary/ (contains (floppy) images)
Bootstrap/Build/ (contains object code)
Bootstrap/Image/ (contains directories & files that are copied to the floppy image)
Bootstrap/Mount/ (on Linux the floppy image is mounted to this directory)
Drivers/Generic/<Name>/
Drivers/x86/<Name>/
DataFiles/Config/<Various configuration files>
Libraries/<Name>/ (contains userspace libraries)
Protocols/<Name>/ (contains headers file and helper classes for ipc protocols)
System/InitProcess/
System/InitScript/
System/<NameOfMyKernel>/Kernel/ (generic kernel files)
System/<NameOfMyKernel>/Runtime/x86/ (x86 specific kernel files)
System/MmLib/ (contains memory managers that are shared between the init process and the kernel)
Utilities/<Name>/ (contains utilities required to bootstrap the os e.g. a tool that generates the initrd)

Re: files

Posted: Wed Jul 30, 2008 4:50 am
by b.zaar
I try to keep it simple but obvious and this is my second directory structure as the first one was a bit too messy.

apps/[appname]/
boot/
docs/
drivers/[drivername]/
kernel/
kernel/asm/
lib/
lib/include/...
lib/libc/
lib/libk/
logs/
ramdisk/
tools/[toolname]/

If it makes it to another cpu down the track then i'll need to rethink it some.

Re: files

Posted: Wed Jul 30, 2008 5:00 am
by JamesM

Code: Select all

$ tree -d -I CMakeFiles
.
|-- build
|-- compilers
|   `-- dir -> /export/.pedigree
|-- dir -> ./compilers/dir
|-- docs
|   |-- code
|   |-- design
|   |   |-- design
|   |   |-- planning
|   |   `-- preliminaries
|   `-- docs
|-- images
|-- scripts
|-- src
|   |-- drivers
|   |   |-- arm
|   |   |-- common
|   |   |   |-- ata
|   |   |   `-- partition
|   |   |-- mips
|   |   |-- ppc
|   |   |   `-- test
|   |   `-- x86
|   |       `-- ata
|   |-- subsys
|   |   |-- dos
|   |   |-- native
|   |   |-- posix
|   |   `-- security
|   |-- system
|   |   |-- boot
|   |   |   |-- arm
|   |   |   |-- mips
|   |   |   |-- nutem
|   |   |   |   |-- src
|   |   |   |   |   |-- loader
|   |   |   |   |   |   |-- boot0
|   |   |   |   |   |   `-- boot1
|   |   |   |   |   `-- manager
|   |   |   |   `-- tools
|   |   |   |       `-- mkbootimage
|   |   |   `-- ppc
|   |   |-- common
|   |   |-- include
|   |   |   |-- machine
|   |   |   |   |-- arm_common
|   |   |   |   |-- arm_versatile
|   |   |   |   |-- mips_common
|   |   |   |   |-- openfirmware
|   |   |   |   |-- ppc_common
|   |   |   |   `-- x86_common
|   |   |   |-- process
|   |   |   |-- processor
|   |   |   |   |-- arm_926e
|   |   |   |   |-- arm_common
|   |   |   |   |-- mips32
|   |   |   |   |-- mips64
|   |   |   |   |-- mips_common
|   |   |   |   |-- ppc32
|   |   |   |   |-- ppc_common
|   |   |   |   |-- x64
|   |   |   |   |-- x86
|   |   |   |   `-- x86_common
|   |   |   `-- utilities
|   |   |-- kernel
|   |   |   |-- core
|   |   |   |   |-- lib
|   |   |   |   |-- process
|   |   |   |   `-- processor
|   |   |   |       |-- arm_926e
|   |   |   |       |   `-- asm
|   |   |   |       |-- arm_common
|   |   |   |       |-- mips32
|   |   |   |       |   `-- asm
|   |   |   |       |-- mips64
|   |   |   |       |-- mips_common
|   |   |   |       |-- ppc32
|   |   |   |       |   `-- asm
|   |   |   |       |-- ppc64
|   |   |   |       |-- ppc_common
|   |   |   |       |-- x64
|   |   |   |       |   `-- asm
|   |   |   |       |-- x86
|   |   |   |       |   `-- asm
|   |   |   |       `-- x86_common
|   |   |   |-- debugger
|   |   |   |   |-- commands
|   |   |   |   `-- libudis86
|   |   |   |-- linker
|   |   |   |-- machine
|   |   |   |   |-- arm_common
|   |   |   |   |-- arm_versatile
|   |   |   |   |-- au1500
|   |   |   |   |   `-- db1500
|   |   |   |   |-- mac
|   |   |   |   |-- malta
|   |   |   |   |   `-- bonito64
|   |   |   |   |-- mips_common
|   |   |   |   |-- openfirmware
|   |   |   |   |-- ppc_common
|   |   |   |   `-- x86_common
|   |   |   `-- utilities
|   |   `-- modules
|   |       |-- ata
|   |       |-- test2
|   |       |-- test3
|   |       `-- vfs
|   `-- user
|       |-- applications
|       |   `-- chess
|       `-- libraries
|           `-- 8086
|-- templates
`-- tests
Beat that.

Re: files

Posted: Wed Jul 30, 2008 5:42 am
by AJ
:lol:

Re: files

Posted: Wed Jul 30, 2008 7:35 am
by Adek336
You support 4 architectures?
/arch/
/arch/x86/
/common/
/collection/
/ipc/
/module/
/memory/
/net/
/thread/
/tty/

Re: files

Posted: Wed Jul 30, 2008 8:38 am
by JamesM
Adek336 wrote:You support 4 architectures?
/arch/
/arch/x86/
/common/
/collection/
/ipc/
/module/
/memory/
/net/
/thread/
/tty/
yes.

Re: files

Posted: Wed Jul 30, 2008 10:16 am
by inflater
CODE/BOOT
CODE/DATA
CODE/DATA/INC
CODE/DRIVERS
CODE/PASCAL
CODE/PASCAL/SPIRAL
CODE/PMODE
CODE/RMODE
CODE/SHELL

and the web site
SITE/DATA
SITE/EN
SITE/SK
SITE/PIC

Re: files

Posted: Wed Jul 30, 2008 11:04 am
by zbeos
thanks all i needed was a few opinions.

Re: files

Posted: Wed Jul 30, 2008 7:36 pm
by thepowersgang
/AcessOS - Fully Featured Version (Multitasking, Higher-Half)
/AcessBasic - Simple Version (Single Tasking, No VMem)
/CommonCode - Shared Code Between Versions (Drivers, VFS)