CSC/ECE 517 Fall 2014/oss M1455 asa: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 24: Line 24:


2. We build the servo using<br>  
2. We build the servo using<br>  
  ./mach build<br>
./mach build<br>
[[File:build_servo.png]]<br>
<center>[[File:build_servo.png|200px]]</center><br>
<br>
<br>


3. Once our servo is built, we can run it using a test url<br>
3. Once our servo is built, we can run it using a test url<br>
[[File:test_command.png]]<br>
./mach run url <br>
[[File:test_op.jpg]]<br>
<center>[[File:test_command.png|200px]]</center><br>
<center>[[File:test_op.png|200px]]</center><br>

Revision as of 23:37, 26 October 2014

EVALUATE REPLACING C IMAGE & FONT LIBRARIES WITH RUST EQUIVALENTS In this wiki we represent the steps involved in our OSS Mozilla Project using Rust Programming Language.

Introduction

Servo is an experimental web browser layout engine being developed by Mozilla Research for new generation hardware. The project has a symbiotic relationship with the Rust programming language, in which it is being developed. Rust is a new programming language for developing reliable and efficient systems.

Servo currently depends on a lot of C libraries, because Rust equivalents did not exist when the project started. We want to evaluate switching some of these to new Rust libraries that have been created. This project involves rewriting the code that uses these libraries as well as taking measurements before and after to determine the costs involved.

Aim

The aim of our project is display the time required by the decode function to decode images of different formats, e.g, jpeg, bmp, png, gif.

Steps of Implementation

We implemented the following steps on our linux machine:
• Build Servo
1. We first need to clone the servo repository using the following command:
git clone https://www.github.com/servo/servo

Now we have a local copy of the servo codebase.

2. We build the servo using
./mach build



3. Once our servo is built, we can run it using a test url
./mach run url