Welcome, Guest. Please login or register.

Author Topic: Coding: CLI args parsing and resident purity  (Read 1979 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Leffmann

  • Full Member
  • ***
  • Join Date: Feb 2011
  • Posts: 119
    • Show all replies
Re: Coding: CLI args parsing and resident purity
« on: January 11, 2012, 01:55:39 AM »
You can use global data in your resident programs with a bit of care. F.ex you can use a mutex to enter a critical section where you can retrieve the global data, or initialize it if it's the first run of the program, to save you from having to include the data in your binary. Making this code in turn ROMable is doable too but takes a bit more work.