Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Obey Obey
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • RiscOS
    • SSources
  • Programmer
  • ObeyObey
  • Merge requests
  • !1

Open
Created Jul 31, 2020 by Julie Stamp@jstampDeveloper
  • Report abuse
Report abuse

Re-implement Obey in C

  • Overview 12
  • Commits 20
  • Pipelines 22
  • Changes 23

Detail: The module has been re-implemented in C.

  • Makefile altered to build C
  • cmhg file created

New source files

  • c.module - module, service call, and environment handlers, argument parsing

  • c.env - utility functions for changing environment

  • c.list - adding / removing ObeyFiles from list in our workspace

  • c.globals - messagetrans lookup

  • c.obeyfile - opening and closing ObeyFiles, and main processing loop

  • s.veneer - veneers for environment handlers, missing functions from OSLib

  • Docs.State - an explanation of various constants introduced to identify the current state of an ObeyFile.

The environment is handled slightly differently to avoid having to create a (machine code) stub for each Obeyfile.

Each invocation uses 100 bytes more stack. So less nesting is available (e.g. 57 levels vs 70 levels depending on use).

Admin: Runs !Boot sequence from disc.

Edited Dec 02, 2020 by Julie Stamp
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: CObey