bcal (Byte CALculator) is a command-line utility for storage conversions and calculations. Storage, hardware and firmware developers work with numerical calculations regularly e.g., storage unit conversions, address calculations etc. If you are one and can't calculate the hex address offset for (512 - 16) MiB immediately, or the value when the 43rd bit of a 64-bit address is set, bcal is for you.

Though it started with storage, the scope of bcal isn't limited to the storage domain. Feel free to raise PRs to simplify other domain-specific numerical calculations so it can evolve into an engineer's utility.

bcal follows Ubuntu's standard unit conversion and notation policy. Only 64-bit operating systems are supported.

Features

  • evaluate arithmetic expressions involving storage units
  • convert to IEC/SI standard data storage units
  • show the address in bytes
  • show address as LBA:OFFSET
  • convert CHS to LBA and vice versa
  • show binary, decimal and hex representation of a number
  • custom sector size, max heads/cylinder and max sectors/track
  • minimal dependencies

Project Samples

Project Activity

See All Activity >

Categories

Storage, Calculators

License

GNU General Public License version 3.0 (GPLv3)

Follow bcal

bcal Web Site

Other Useful Business Software
Auth for GenAI | Auth0 Icon
Auth for GenAI | Auth0

Enable AI agents to securely access tools, workflows, and data with fine-grained control and just a few lines of code.

Easily implement secure login experiences for AI Agents - from interactive chatbots to background workers with Auth0. Auth for GenAI is now available in Developer Preview
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of bcal!

Additional Project Details

Operating Systems

Linux

User Interface

Console/Terminal, Command-line

Programming Language

C

Related Categories

C Storage Software, C Calculators

Registered

2017-08-03