On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTTarget-32 Programming Manual
Introduction
Running Win32 Programs without Win32
The i386 Microprocessor
RTLoc: Locating a Program
Running a Program on the Target
Cross Debugging
Using an IDE
The RTTarget-32 API
Demo Programs
Advanced Topics
Choosing a Locate Method
Running with or without Paging
Running at CPL 0 or 3
Installing Hardware Interrupt Handlers
Catching NULL Pointer Assignments
Catching Stack Overflows
Running without Run-Time System
Avoid Repeated Downloads
Configuration for Debug and Release Builds
Using Data Compression
Using DLLs through RTLoc
Loading DLLs through a File System
RAM File System
Installable File System
Multithread Applications
Using the MetaWINDOW Graphics Library
Using the 387 Emulator
Using Non-Volatile Memory
APIC Mode
Multiprocessor Applications
Custom MP Floating Pointer Structure
RTVmf-32
RTRth-32
Performance Optimizations
Compiling and Linking with On Time RTOS-32
Redistributable Components of RTTarget-32
RTLoc Error Messages
RTTarget-32 Reference Manual
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTUSB-32
|
RAM File System
RTTarget-32 contains a simple RAM/ROM file system. The Locate File command can place files in a program image. Such files are then accessible through the Win32 API or C/C++/Pascal run-time system functions. The files can reside in RAM or ROM.
When a file is created dynamically at run-time or an existing RAM/ROM file is modified, it will be allocated on the program's heap. Existing RAM/ROM files are copied to the allocated heap space before further file I/O takes place. Whenever the size of such a file changes, the file's image is reallocated with HeapReAlloc. Files residing on the heap will be lost when the program terminates.
Properties of the RAM/ROM File System:
- The data of files created with Locate File resides in the region of memory specified in the respective Locate command.
- RAM/ROM Files created or written to at run-time reside on the default Win32 process heap.
- Any data written to RAM/ROM files is lost when the program terminates.
- Up to 16 RAM/ROM files can be open simultaneously at any given time.
- The total number of sections supported by RTLoc is 255. Each file located with Locate File requires one such section. Compressed files occupy two sections due to the respective Locate Copy command.
- Files created with Locate File cannot be deleted at run-time, but you can overwrite them. Files created at run-time can be deleted.
- Directories are not supported. Any path information in file names passed to CreateFile is stripped. Directory management functions such as CreateDirectory and RemoveDirectory fail. SetCurrentDirectory can only be used to change the default file system if several file systems have been installed on different driver letters. See section Installable File System for details.
- If an application uses the On Time RTOS-32 file system RTFiles-32, the RAM/ROM file system is not available by default. However, the disk and RAM/ROM file system can be configured to be both available on different driver letters. See section Installable File System for details.
Advanced Topics
Loading DLLs through a File System
Installable File System
|