Getting Available Memory from Juliar.Future (Juliar Compiler)

May 21, 2017 | Views: 2179

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

Hello 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!

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
2 Comments
  1. int x = availableMemory();

    print(“available memory = “);

    printLine(x);

    getting error

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel