encyclopegia.org

Charm (programming language)

Charm is a computer programming language devised in the early 1990s with similarities to the RTL/2, Pascal and C languages in addition to containing some unique features of its own. The Charm language is defined by a context-free grammar amenable to being processed by recursive descent parser as described in seminal books on compiler design. A set of Charm tools including a compiler, assembler and linker was made available for Acorn's RISC OS platform. Charm reworked for RISC OS platforms has subsequently been reviewed in Archive magazine. Charm is further described in the e-book Programming in Charm on the Raspberry Pi.

Charm is a computer programming language devised in the early 1990s with similarities to the RTL/2, Pascal and C languages in addition to containing some unique features of its own. The Charm language is defined by a context-free grammar amenable to being processed by recursive descent parser as described in seminal books on compiler design. A set of Charm tools including a compiler, assembler and linker was made available for Acorn's RISC OS platform. Charm reworked for RISC OS platforms has subsequently been reviewed in Archive magazine. Charm is further described in the e-book Programming in Charm on the Raspberry Pi. References to data constructs and procedures may be made using the keyword. These can be dereferenced using the keyword. When using reference variables, comparison operators are available to check whether two reference variables refer to the same item of data ( :=: ) or whether the data they point to is the same ( = ). ext proc write_string (ref array char); module hello; ent proc start (); write_string ("Hello world"); end_proc; end_module; and the equivalent latest version following evolutionary syntactic language changes is: import lib.Out; module Hello { export proc ~start () { Out.vdu.str ("Hello world"). nl(); } } The Charm compiler is a recursive descent single pass compiler which parses Charm source code to generate quadruples of the form result := lhs op rhs in an intermediate language that supports arithmetic, logical and flow of control operations. Data is stored in temporaries which are assigned to registers and memory locations in the back end of the compiler. Two back ends are currently in existence, one generating Motorola 68000 assembly language, and the other generating ARM architecture. The quadruple output from the hello world example is: param l1$ call write_string[proc (ref array char) void] and the assembler output is: string "hello" xdef _start align _start xref _write_string stmfd sp!,{rp} adr r0,_l1$ bl _write_string ldmfd sp!,{pc} address align _l1$ string "Hello world" direct end In more recent releases of Charm, the I/O procedures have been split into their own modules In and Out. Other standard library procedures are organised into a set of records with procedure references as fields. As part of this reorganisation, the write_string method is now invoked through the run time library module Out via static member reference .vdu as procedure str i.e. in the hello world example above write_string ("Hello world") becomes Out.vdu.str ("Hello world") .

References

  1. Charm RISC OS, language page Wikipedia revision 1311023135, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1311023135
    Cite this reference

    MLA "Charm RISC OS, language page Wikipedia revision 1311023135, retrieved 2026-11-18." 2026-11-17. http://riscos-charm.yolasite.com/language.php. Accessed 24 November 2026.

    Chicago "Charm RISC OS, language page Wikipedia revision 1311023135, retrieved 2026-11-18." 2026-11-17. http://riscos-charm.yolasite.com/language.php.

    APA encyclopegia.org. (2026). Charm RISC OS, language page Wikipedia revision 1311023135, retrieved 2026-11-18. Retrieved November 24, 2026, from http://riscos-charm.yolasite.com/language.php

  2. ISBN 0-9512579-0-0 Peter Cockerell ARM Assembly Language Programming Wikipedia revision 1311023135, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1311023135
    Cite this reference

    MLA "ISBN 0-9512579-0-0 Peter Cockerell ARM Assembly Language Programming Wikipedia revision 1311023135, retrieved 2026-11-18." 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.

    Chicago "ISBN 0-9512579-0-0 Peter Cockerell ARM Assembly Language Programming Wikipedia revision 1311023135, retrieved 2026-11-18." 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA encyclopegia.org. (2026). ISBN 0-9512579-0-0 Peter Cockerell ARM Assembly Language Programming Wikipedia revision 1311023135, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  3. June 2013 Kindle e-book Charm Programming on the Raspberry Pi Wikipedia revision 1311023135, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1311023135
    Cite this reference

    MLA "June 2013 Kindle e-book Charm Programming on the Raspberry Pi Wikipedia revision 1311023135, retrieved 2026-11-18." 2026-11-17. https://www.amazon.co.uk/dp/B00DGNQO8U. Accessed 24 November 2026.

    Chicago "June 2013 Kindle e-book Charm Programming on the Raspberry Pi Wikipedia revision 1311023135, retrieved 2026-11-18." 2026-11-17. https://www.amazon.co.uk/dp/B00DGNQO8U.

    APA encyclopegia.org. (2026). June 2013 Kindle e-book Charm Programming on the Raspberry Pi Wikipedia revision 1311023135, retrieved 2026-11-18. Retrieved November 24, 2026, from https://www.amazon.co.uk/dp/B00DGNQO8U

  4. ISBN D-201-10073-8 Aho, Ullman Principles of Compiler Design Wikipedia revision 1311023135, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1311023135
    Cite this reference

    MLA "ISBN D-201-10073-8 Aho, Ullman Principles of Compiler Design Wikipedia revision 1311023135, retrieved 2026-11-18." 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1311023135. Accessed 24 November 2026.

    Chicago "ISBN D-201-10073-8 Aho, Ullman Principles of Compiler Design Wikipedia revision 1311023135, retrieved 2026-11-18." 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1311023135.

    APA encyclopegia.org. (2026). ISBN D-201-10073-8 Aho, Ullman Principles of Compiler Design Wikipedia revision 1311023135, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1311023135

  5. ISBN D-201-10194-7 Aho, Sethi, Ullman Compilers Principles, Techniques and Tools Wikipedia revision 1311023135, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1311023135
    Cite this reference

    MLA "ISBN D-201-10194-7 Aho, Sethi, Ullman Compilers Principles, Techniques and Tools Wikipedia revision 1311023135, retrieved 2026-11-18." ISBN D-201-10194-7 Aho, Sethi, Ullman Compilers Principles, Techniques and Tools Wikipedia revision 1311023135, retrieve. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1311023135. Accessed 24 November 2026.

    Chicago "ISBN D-201-10194-7 Aho, Sethi, Ullman Compilers Principles, Techniques and Tools Wikipedia revision 1311023135, retrieved 2026-11-18." ISBN D-201-10194-7 Aho, Sethi, Ullman Compilers Principles, Techniques and Tools Wikipedia revision 1311023135, retrieve. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1311023135.

    APA ISBN D-201-10194-7 Aho, Sethi, Ullman Compilers Principles, Techniques and Tools Wikipedia revision 1311023135, retrieve. (2026). ISBN D-201-10194-7 Aho, Sethi, Ullman Compilers Principles, Techniques and Tools Wikipedia revision 1311023135, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1311023135

  6. Charm or trinket? · retrieved 2026-11-17 · rev 1311023135
    Cite this reference

    MLA "Charm or trinket?." Wade, Stephen (June 1996). 2026-11-17. https://archive.org/details/AcornUser169-Jun96/page/n49/mode/2up. Accessed 24 November 2026.

    Chicago "Charm or trinket?." Wade, Stephen (June 1996). 2026-11-17. https://archive.org/details/AcornUser169-Jun96/page/n49/mode/2up.

    APA Wade, Stephen (June 1996). (2026). Charm or trinket?. Retrieved November 24, 2026, from https://archive.org/details/AcornUser169-Jun96/page/n49/mode/2up

  7. The Charm language: a review · retrieved 2021-08-27 · rev 1311023135
    Cite this reference

    MLA "The Charm language: a review." Wraith, Gavin (January 2012). 2021-08-27. https://www.scribd.com/document/85821532/Charm-Review-in-Archive-Magazine-Jan-Feb-2012. Accessed 24 November 2026.

    Chicago "The Charm language: a review." Wraith, Gavin (January 2012). 2021-08-27. https://www.scribd.com/document/85821532/Charm-Review-in-Archive-Magazine-Jan-Feb-2012.

    APA Wraith, Gavin (January 2012). (2021). The Charm language: a review. Retrieved November 24, 2026, from https://www.scribd.com/document/85821532/Charm-Review-in-Archive-Magazine-Jan-Feb-2012

Cite this article

MLA

"Charm (programming language)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/charm-programming-language. Accessed 24 November 2026.

Chicago

"Charm (programming language)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/charm-programming-language.

APA

encyclopegia.org. (2025). Charm (programming language). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/charm-programming-language

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1311023135 · 0.5 · snapshot enwiki-001311023135

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.