Home 0P3N Blog Getting Available Memory from Juliar.Future (Juliar Compiler)
Ready to Start Your Career?
Create Free Account
By: Rattar
May 21, 2017

Getting Available Memory from Juliar.Future (Juliar Compiler)

By: Rattar
May 21, 2017
By: Rattar
May 21, 2017
code-compilerHello RatTeamsters and Cybrarians,Today we will be learning about checking the memory in Juliar.Future.So why is it important to check the memory?
  1. Sometimes an application can take up a lot of memory and you might need to reduce it.
  2. Find out how much memory some object or class takes for debugging purposes
So let's start with creating our main function:
function main() = {}
Then inside of it, let's put the code:

int x = availableMemory();

print("available memory = ");

printLine(x);

This will print out available memory. Feel free to check different objects this way.One example is:

int x = availableMemory();

string y = "Some random string I am trying to find memory";

print(- x availableMemory());

Good luck and have fun using the available memory command!
Request Demo

Build your Cybersecurity or IT Career

Accelerate in your role, earn new certifications, and develop cutting-edge skills using the fastest growing catalog in the industry