Giter Site home page Giter Site logo

maandree / optimised-true Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 15 KB

[Complete, except other architectures may be added in future] Optimised implementations of true(1) and false(1)

Home Page: https://codeberg.org/maandree/optimised-true

License: Other

Makefile 81.51% C 4.17% Assembly 14.32%
core true false assembly sillyness utility

optimised-true's Introduction

NAME
	true - return true value
	false - return false value

SYNOPSIS
	true [ignored arguments]
	false [ignored arguments]

DESCRIPTION
	Optimised implementations of true(1p) and false(1p).
	true and false shall do nothing, successfully and
	unsuccessfully, respectively.

	If your microarchitecture is especially supported,
	true and false are implemented in assembler, without
	a C runtime and only requires one page of memory.

	If your microarchitecture is not especially supported,
	true and false are implemented in C using only a
	return statement in the main function. In this case,
	a C runtime is used which slows down the program
	significantly and it is usually required that somewhere
	around 400 KB to 800 KB of memory is used (that is
	about 150 pages.)

OPTIONS
	None.

EXIT STATUS
	true shall exit with the status 0.
	false shall exit with any value other than 0.
	In this implement false exits with the status 1.

RATIONALE
	None.

NOTES
	Your shell may have its own verions of true(1p)
	and false(1p). If it doesn't, and false(1) is last
	in your PATH, you could prove the performance of
	false(1) by not installing false(1). However, if
	this is done, your shell will probably complain
	that false(1) cannot be found.

BUGS
	None. These programs are about as simple as it gets.

SEE ALSO
	true(1p), false(1p)

optimised-true's People

Contributors

maandree avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.