WEBVTT
Kind: captions
Language: en

00:00:00.080 --> 00:00:01.510 align:start position:0%
 
hi<00:00:00.240><c> everyone</c><00:00:00.680><c> thanks</c><00:00:00.840><c> for</c><00:00:01.000><c> watching</c><00:00:01.199><c> Lori</c>

00:00:01.510 --> 00:00:01.520 align:start position:0%
hi everyone thanks for watching Lori
 

00:00:01.520 --> 00:00:03.350 align:start position:0%
hi everyone thanks for watching Lori
wired<00:00:02.200><c> and</c><00:00:02.360><c> in</c><00:00:02.480><c> this</c><00:00:02.679><c> video</c><00:00:02.919><c> we're</c><00:00:03.080><c> going</c><00:00:03.240><c> to</c>

00:00:03.350 --> 00:00:03.360 align:start position:0%
wired and in this video we're going to
 

00:00:03.360 --> 00:00:05.309 align:start position:0%
wired and in this video we're going to
learn<00:00:03.600><c> how</c><00:00:03.719><c> to</c><00:00:03.919><c> dynamically</c><00:00:04.600><c> allocate</c><00:00:05.120><c> and</c>

00:00:05.309 --> 00:00:05.319 align:start position:0%
learn how to dynamically allocate and
 

00:00:05.319 --> 00:00:18.150 align:start position:0%
learn how to dynamically allocate and
deallocate<00:00:06.000><c> memory</c><00:00:06.720><c> in</c><00:00:06.879><c> C++</c><00:00:07.720><c> C</c><00:00:08.400><c> and</c><00:00:08.639><c> raw</c>

00:00:18.150 --> 00:00:18.160 align:start position:0%
 
 

00:00:18.160 --> 00:00:20.590 align:start position:0%
 
assembly<00:00:19.160><c> now</c><00:00:19.359><c> dynamic</c><00:00:19.760><c> memory</c><00:00:20.160><c> is</c><00:00:20.320><c> really</c>

00:00:20.590 --> 00:00:20.600 align:start position:0%
assembly now dynamic memory is really
 

00:00:20.600 --> 00:00:22.390 align:start position:0%
assembly now dynamic memory is really
important<00:00:21.119><c> if</c><00:00:21.240><c> you're</c><00:00:21.400><c> not</c><00:00:21.680><c> aware</c><00:00:22.080><c> of</c><00:00:22.240><c> the</c>

00:00:22.390 --> 00:00:22.400 align:start position:0%
important if you're not aware of the
 

00:00:22.400 --> 00:00:24.550 align:start position:0%
important if you're not aware of the
amount<00:00:22.800><c> of</c><00:00:22.960><c> memory</c><00:00:23.359><c> that</c><00:00:23.480><c> you</c><00:00:23.599><c> need</c><00:00:24.320><c> at</c>

00:00:24.550 --> 00:00:24.560 align:start position:0%
amount of memory that you need at
 

00:00:24.560 --> 00:00:27.310 align:start position:0%
amount of memory that you need at
compile<00:00:25.080><c> time</c><00:00:25.439><c> of</c><00:00:25.680><c> the</c><00:00:25.880><c> application</c><00:00:26.880><c> so</c><00:00:27.080><c> this</c>

00:00:27.310 --> 00:00:27.320 align:start position:0%
compile time of the application so this
 

00:00:27.320 --> 00:00:29.349 align:start position:0%
compile time of the application so this
allocates<00:00:27.920><c> additional</c><00:00:28.400><c> memory</c><00:00:28.800><c> on</c><00:00:28.920><c> the</c><00:00:29.080><c> Heap</c>

00:00:29.349 --> 00:00:29.359 align:start position:0%
allocates additional memory on the Heap
 

00:00:29.359 --> 00:00:30.550 align:start position:0%
allocates additional memory on the Heap
for<00:00:29.519><c> you</c><00:00:29.599><c> to</c><00:00:29.759><c> use</c>

00:00:30.550 --> 00:00:30.560 align:start position:0%
for you to use
 

00:00:30.560 --> 00:00:32.549 align:start position:0%
for you to use
if<00:00:30.679><c> you</c><00:00:30.840><c> need</c><00:00:31.080><c> to</c><00:00:31.480><c> allocate</c><00:00:32.040><c> additional</c>

00:00:32.549 --> 00:00:32.559 align:start position:0%
if you need to allocate additional
 

00:00:32.559 --> 00:00:34.670 align:start position:0%
if you need to allocate additional
memory<00:00:33.000><c> while</c><00:00:33.200><c> the</c><00:00:33.399><c> application</c><00:00:33.879><c> is</c><00:00:34.079><c> running</c>

00:00:34.670 --> 00:00:34.680 align:start position:0%
memory while the application is running
 

00:00:34.680 --> 00:00:37.150 align:start position:0%
memory while the application is running
and<00:00:35.040><c> executing</c><00:00:36.040><c> one</c><00:00:36.280><c> really</c><00:00:36.480><c> good</c><00:00:36.680><c> example</c>

00:00:37.150 --> 00:00:37.160 align:start position:0%
and executing one really good example
 

00:00:37.160 --> 00:00:39.790 align:start position:0%
and executing one really good example
use<00:00:37.480><c> case</c><00:00:37.680><c> of</c><00:00:37.840><c> this</c><00:00:38.200><c> is</c><00:00:38.320><c> if</c><00:00:38.440><c> you</c><00:00:38.640><c> have</c><00:00:38.840><c> an</c><00:00:39.040><c> array</c>

00:00:39.790 --> 00:00:39.800 align:start position:0%
use case of this is if you have an array
 

00:00:39.800 --> 00:00:41.510 align:start position:0%
use case of this is if you have an array
and<00:00:39.920><c> you're</c><00:00:40.079><c> not</c><00:00:40.280><c> aware</c><00:00:40.559><c> of</c><00:00:40.719><c> how</c><00:00:40.879><c> many</c><00:00:41.160><c> values</c>

00:00:41.510 --> 00:00:41.520 align:start position:0%
and you're not aware of how many values
 

00:00:41.520 --> 00:00:43.029 align:start position:0%
and you're not aware of how many values
that<00:00:41.640><c> you're</c><00:00:41.800><c> going</c><00:00:42.000><c> to</c><00:00:42.200><c> need</c><00:00:42.719><c> since</c><00:00:42.920><c> you're</c>

00:00:43.029 --> 00:00:43.039 align:start position:0%
that you're going to need since you're
 

00:00:43.039 --> 00:00:44.790 align:start position:0%
that you're going to need since you're
going<00:00:43.120><c> to</c><00:00:43.239><c> be</c><00:00:43.360><c> setting</c><00:00:43.800><c> these</c><00:00:44.039><c> values</c><00:00:44.559><c> at</c>

00:00:44.790 --> 00:00:44.800 align:start position:0%
going to be setting these values at
 

00:00:44.800 --> 00:00:47.350 align:start position:0%
going to be setting these values at
runtime<00:00:45.440><c> of</c><00:00:45.640><c> the</c><00:00:45.840><c> application</c><00:00:46.800><c> so</c><00:00:47.000><c> maybe</c><00:00:47.239><c> you</c>

00:00:47.350 --> 00:00:47.360 align:start position:0%
runtime of the application so maybe you
 

00:00:47.360 --> 00:00:49.350 align:start position:0%
runtime of the application so maybe you
need<00:00:47.559><c> to</c><00:00:47.800><c> allocate</c><00:00:48.320><c> additional</c><00:00:48.800><c> space</c><00:00:49.160><c> to</c>

00:00:49.350 --> 00:00:49.360 align:start position:0%
need to allocate additional space to
 

00:00:49.360 --> 00:00:52.229 align:start position:0%
need to allocate additional space to
store<00:00:49.879><c> extra</c><00:00:50.360><c> values</c><00:00:50.879><c> for</c><00:00:51.120><c> your</c><00:00:51.320><c> array</c><00:00:52.079><c> or</c>

00:00:52.229 --> 00:00:52.239 align:start position:0%
store extra values for your array or
 

00:00:52.239 --> 00:00:54.150 align:start position:0%
store extra values for your array or
maybe<00:00:52.440><c> you</c><00:00:52.559><c> need</c><00:00:52.719><c> to</c><00:00:52.920><c> resize</c><00:00:53.440><c> the</c><00:00:53.559><c> array</c><00:00:53.960><c> and</c>

00:00:54.150 --> 00:00:54.160 align:start position:0%
maybe you need to resize the array and
 

00:00:54.160 --> 00:00:56.110 align:start position:0%
maybe you need to resize the array and
give<00:00:54.320><c> some</c><00:00:54.520><c> memory</c><00:00:55.039><c> back</c><00:00:55.239><c> over</c><00:00:55.440><c> to</c><00:00:55.640><c> the</c><00:00:55.840><c> system</c>

00:00:56.110 --> 00:00:56.120 align:start position:0%
give some memory back over to the system
 

00:00:56.120 --> 00:00:58.229 align:start position:0%
give some memory back over to the system
to<00:00:56.320><c> use</c><00:00:57.039><c> so</c><00:00:57.199><c> let's</c><00:00:57.399><c> get</c><00:00:57.600><c> right</c><00:00:57.760><c> into</c><00:00:58.000><c> it</c><00:00:58.120><c> and</c>

00:00:58.229 --> 00:00:58.239 align:start position:0%
to use so let's get right into it and
 

00:00:58.239 --> 00:00:59.630 align:start position:0%
to use so let's get right into it and
let's<00:00:58.399><c> see</c><00:00:58.559><c> what</c><00:00:58.680><c> it</c><00:00:58.800><c> looks</c><00:00:59.079><c> like</c><00:00:59.399><c> now</c><00:00:59.519><c> I'm</c>

00:00:59.630 --> 00:00:59.640 align:start position:0%
let's see what it looks like now I'm
 

00:00:59.640 --> 00:01:01.590 align:start position:0%
let's see what it looks like now I'm
going<00:00:59.719><c> to</c><00:00:59.800><c> be</c><00:01:00.120><c> running</c><00:01:00.399><c> this</c><00:01:00.600><c> on</c><00:01:00.800><c> a</c><00:01:01.000><c> Raspberry</c>

00:01:01.590 --> 00:01:01.600 align:start position:0%
going to be running this on a Raspberry
 

00:01:01.600 --> 00:01:03.990 align:start position:0%
going to be running this on a Raspberry
Pi<00:01:02.359><c> and</c><00:01:02.480><c> I</c><00:01:02.640><c> already</c><00:01:02.960><c> have</c><00:01:03.160><c> a</c><00:01:03.280><c> couple</c><00:01:03.559><c> folders</c>

00:01:03.990 --> 00:01:04.000 align:start position:0%
Pi and I already have a couple folders
 

00:01:04.000 --> 00:01:06.310 align:start position:0%
Pi and I already have a couple folders
and<00:01:04.159><c> a</c><00:01:04.280><c> couple</c><00:01:04.519><c> stub</c><00:01:05.000><c> appc</c><00:01:05.560><c> applications</c><00:01:06.200><c> that</c>

00:01:06.310 --> 00:01:06.320 align:start position:0%
and a couple stub appc applications that
 

00:01:06.320 --> 00:01:09.710 align:start position:0%
and a couple stub appc applications that
are<00:01:06.439><c> going</c><00:01:06.520><c> to</c><00:01:06.640><c> be</c><00:01:06.760><c> in</c><00:01:06.960><c> C++</c><00:01:07.960><c> C</c><00:01:08.560><c> and</c><00:01:08.680><c> then</c><00:01:08.840><c> arm</c><00:01:09.159><c> V7</c>

00:01:09.710 --> 00:01:09.720 align:start position:0%
are going to be in C++ C and then arm V7
 

00:01:09.720 --> 00:01:11.590 align:start position:0%
are going to be in C++ C and then arm V7
assembly<00:01:10.560><c> so</c><00:01:10.680><c> we're</c><00:01:10.799><c> going</c><00:01:10.920><c> to</c><00:01:11.119><c> begin</c><00:01:11.439><c> with</c>

00:01:11.590 --> 00:01:11.600 align:start position:0%
assembly so we're going to begin with
 

00:01:11.600 --> 00:01:13.710 align:start position:0%
assembly so we're going to begin with
C++<00:01:12.520><c> here</c><00:01:12.720><c> and</c><00:01:12.840><c> this</c><00:01:12.960><c> is</c><00:01:13.040><c> going</c><00:01:13.159><c> to</c><00:01:13.280><c> be</c><00:01:13.479><c> the</c>

00:01:13.710 --> 00:01:13.720 align:start position:0%
C++ here and this is going to be the
 

00:01:13.720 --> 00:01:16.310 align:start position:0%
C++ here and this is going to be the
highest<00:01:14.119><c> level</c><00:01:14.439><c> view</c><00:01:15.040><c> of</c><00:01:15.240><c> memory</c><00:01:15.640><c> allocation</c>

00:01:16.310 --> 00:01:16.320 align:start position:0%
highest level view of memory allocation
 

00:01:16.320 --> 00:01:18.710 align:start position:0%
highest level view of memory allocation
and<00:01:16.840><c> deallocation</c><00:01:17.840><c> this</c><00:01:17.960><c> is</c><00:01:18.040><c> going</c><00:01:18.159><c> to</c><00:01:18.280><c> be</c><00:01:18.520><c> the</c>

00:01:18.710 --> 00:01:18.720 align:start position:0%
and deallocation this is going to be the
 

00:01:18.720 --> 00:01:20.830 align:start position:0%
and deallocation this is going to be the
most<00:01:19.119><c> simple</c><00:01:19.640><c> if</c><00:01:19.759><c> you're</c><00:01:20.000><c> trying</c><00:01:20.280><c> to</c><00:01:20.479><c> work</c>

00:01:20.830 --> 00:01:20.840 align:start position:0%
most simple if you're trying to work
 

00:01:20.840 --> 00:01:22.789 align:start position:0%
most simple if you're trying to work
inside<00:01:21.119><c> of</c><00:01:21.320><c> this</c><00:01:21.479><c> language</c><00:01:22.439><c> then</c><00:01:22.560><c> we're</c><00:01:22.720><c> going</c>

00:01:22.789 --> 00:01:22.799 align:start position:0%
inside of this language then we're going
 

00:01:22.799 --> 00:01:24.789 align:start position:0%
inside of this language then we're going
to<00:01:22.920><c> move</c><00:01:23.119><c> on</c><00:01:23.280><c> to</c><00:01:23.520><c> C</c><00:01:24.040><c> which</c><00:01:24.159><c> is</c><00:01:24.280><c> going</c><00:01:24.360><c> to</c><00:01:24.479><c> be</c><00:01:24.720><c> a</c>

00:01:24.789 --> 00:01:24.799 align:start position:0%
to move on to C which is going to be a
 

00:01:24.799 --> 00:01:26.630 align:start position:0%
to move on to C which is going to be a
little<00:01:25.000><c> bit</c><00:01:25.200><c> lower</c><00:01:25.560><c> level</c><00:01:26.000><c> and</c><00:01:26.119><c> just</c><00:01:26.280><c> a</c><00:01:26.400><c> little</c>

00:01:26.630 --> 00:01:26.640 align:start position:0%
little bit lower level and just a little
 

00:01:26.640 --> 00:01:28.990 align:start position:0%
little bit lower level and just a little
bit<00:01:26.799><c> more</c><00:01:27.119><c> challenging</c><00:01:27.640><c> to</c><00:01:27.840><c> implement</c><00:01:28.759><c> before</c>

00:01:28.990 --> 00:01:29.000 align:start position:0%
bit more challenging to implement before
 

00:01:29.000 --> 00:01:31.789 align:start position:0%
bit more challenging to implement before
we<00:01:29.159><c> move</c><00:01:29.360><c> on</c><00:01:29.560><c> to</c><00:01:29.720><c> our</c><00:01:30.079><c> last</c><00:01:30.360><c> language</c><00:01:30.880><c> in</c><00:01:31.040><c> armv7</c>

00:01:31.789 --> 00:01:31.799 align:start position:0%
we move on to our last language in armv7
 

00:01:31.799 --> 00:01:33.710 align:start position:0%
we move on to our last language in armv7
assembly<00:01:32.560><c> which</c><00:01:32.680><c> is</c><00:01:32.799><c> going</c><00:01:32.880><c> to</c><00:01:32.960><c> be</c><00:01:33.119><c> the</c><00:01:33.360><c> most</c>

00:01:33.710 --> 00:01:33.720 align:start position:0%
assembly which is going to be the most
 

00:01:33.720 --> 00:01:35.630 align:start position:0%
assembly which is going to be the most
challenging<00:01:34.320><c> and</c><00:01:34.439><c> the</c><00:01:34.600><c> most</c><00:01:34.880><c> complicated</c><00:01:35.439><c> to</c>

00:01:35.630 --> 00:01:35.640 align:start position:0%
challenging and the most complicated to
 

00:01:35.640 --> 00:01:37.710 align:start position:0%
challenging and the most complicated to
implement<00:01:36.479><c> but</c><00:01:36.600><c> it's</c><00:01:36.759><c> going</c><00:01:36.960><c> to</c><00:01:37.200><c> allow</c><00:01:37.439><c> us</c><00:01:37.560><c> to</c>

00:01:37.710 --> 00:01:37.720 align:start position:0%
implement but it's going to allow us to
 

00:01:37.720 --> 00:01:39.990 align:start position:0%
implement but it's going to allow us to
get<00:01:37.960><c> the</c><00:01:38.119><c> lowest</c><00:01:38.520><c> level</c><00:01:38.880><c> and</c><00:01:39.079><c> closest</c><00:01:39.680><c> to</c><00:01:39.840><c> the</c>

00:01:39.990 --> 00:01:40.000 align:start position:0%
get the lowest level and closest to the
 

00:01:40.000 --> 00:01:41.789 align:start position:0%
get the lowest level and closest to the
underlying<00:01:40.680><c> instructions</c><00:01:41.360><c> for</c><00:01:41.640><c> the</c>

00:01:41.789 --> 00:01:41.799 align:start position:0%
underlying instructions for the
 

00:01:41.799 --> 00:01:44.149 align:start position:0%
underlying instructions for the
operating<00:01:42.360><c> system</c><00:01:43.280><c> so</c><00:01:43.439><c> let's</c><00:01:43.640><c> first</c><00:01:43.880><c> take</c><00:01:44.040><c> a</c>

00:01:44.149 --> 00:01:44.159 align:start position:0%
operating system so let's first take a
 

00:01:44.159 --> 00:01:50.350 align:start position:0%
operating system so let's first take a
look<00:01:44.320><c> at</c><00:01:44.439><c> our</c><00:01:44.600><c> C++</c>

00:01:50.350 --> 00:01:50.360 align:start position:0%
 
 

00:01:50.360 --> 00:01:55.749 align:start position:0%
 
program<00:01:51.360><c> so</c><00:01:51.520><c> let's</c><00:01:51.719><c> move</c><00:01:51.960><c> over</c><00:01:52.119><c> to</c><00:01:52.280><c> our</c><00:01:52.439><c> C++</c>

00:01:55.749 --> 00:01:55.759 align:start position:0%
 
 

00:01:55.759 --> 00:01:58.550 align:start position:0%
 
folder<00:01:56.759><c> and</c><00:01:56.960><c> here</c><00:01:57.159><c> is</c><00:01:57.320><c> the</c><00:01:57.479><c> stub</c><00:01:57.880><c> program</c><00:01:58.200><c> that</c>

00:01:58.550 --> 00:01:58.560 align:start position:0%
folder and here is the stub program that
 

00:01:58.560 --> 00:02:00.550 align:start position:0%
folder and here is the stub program that
has<00:01:58.799><c> just</c><00:01:58.880><c> a</c><00:01:59.039><c> little</c><00:01:59.280><c> bit</c><00:01:59.439><c> of</c><00:01:59.560><c> a</c><00:01:59.880><c> C++</c>

00:02:00.550 --> 00:02:00.560 align:start position:0%
has just a little bit of a C++
 

00:02:00.560 --> 00:02:02.630 align:start position:0%
has just a little bit of a C++
application<00:02:01.079><c> to</c><00:02:01.200><c> get</c><00:02:01.320><c> us</c><00:02:01.560><c> started</c><00:02:02.240><c> so</c><00:02:02.439><c> let's</c>

00:02:02.630 --> 00:02:02.640 align:start position:0%
application to get us started so let's
 

00:02:02.640 --> 00:02:05.270 align:start position:0%
application to get us started so let's
go<00:02:02.799><c> ahead</c><00:02:02.960><c> and</c><00:02:03.159><c> edit</c><00:02:03.600><c> this</c><00:02:04.600><c> now</c><00:02:04.799><c> I</c><00:02:04.920><c> already</c>

00:02:05.270 --> 00:02:05.280 align:start position:0%
go ahead and edit this now I already
 

00:02:05.280 --> 00:02:07.109 align:start position:0%
go ahead and edit this now I already
have<00:02:05.439><c> a</c><00:02:05.560><c> TR</c><00:02:05.880><c> catch</c><00:02:06.159><c> statement</c><00:02:06.520><c> in</c><00:02:06.680><c> here</c><00:02:06.920><c> that's</c>

00:02:07.109 --> 00:02:07.119 align:start position:0%
have a TR catch statement in here that's
 

00:02:07.119 --> 00:02:09.229 align:start position:0%
have a TR catch statement in here that's
going<00:02:07.280><c> to</c><00:02:07.479><c> handle</c><00:02:08.000><c> if</c><00:02:08.200><c> we</c><00:02:08.319><c> have</c><00:02:08.479><c> any</c><00:02:08.720><c> errors</c>

00:02:09.229 --> 00:02:09.239 align:start position:0%
going to handle if we have any errors
 

00:02:09.239 --> 00:02:11.589 align:start position:0%
going to handle if we have any errors
while<00:02:09.399><c> we're</c><00:02:09.560><c> trying</c><00:02:09.800><c> to</c><00:02:10.000><c> allocate</c><00:02:10.599><c> this</c><00:02:11.400><c> now</c>

00:02:11.589 --> 00:02:11.599 align:start position:0%
while we're trying to allocate this now
 

00:02:11.599 --> 00:02:13.190 align:start position:0%
while we're trying to allocate this now
there's<00:02:11.879><c> two</c><00:02:12.239><c> keywords</c><00:02:12.680><c> that</c><00:02:12.800><c> we</c><00:02:12.920><c> need</c><00:02:13.040><c> to</c>

00:02:13.190 --> 00:02:13.200 align:start position:0%
there's two keywords that we need to
 

00:02:13.200 --> 00:02:16.030 align:start position:0%
there's two keywords that we need to
keep<00:02:13.400><c> in</c><00:02:13.560><c> mind</c><00:02:13.879><c> while</c><00:02:14.040><c> we're</c><00:02:14.200><c> working</c><00:02:14.480><c> in</c><00:02:15.040><c> C++</c>

00:02:16.030 --> 00:02:16.040 align:start position:0%
keep in mind while we're working in C++
 

00:02:16.040 --> 00:02:17.990 align:start position:0%
keep in mind while we're working in C++
these<00:02:16.200><c> two</c><00:02:16.400><c> keywords</c><00:02:16.760><c> are</c><00:02:16.879><c> going</c><00:02:17.000><c> to</c><00:02:17.120><c> be</c><00:02:17.360><c> new</c>

00:02:17.990 --> 00:02:18.000 align:start position:0%
these two keywords are going to be new
 

00:02:18.000 --> 00:02:20.550 align:start position:0%
these two keywords are going to be new
and<00:02:18.319><c> delete</c><00:02:19.239><c> so</c><00:02:19.400><c> the</c><00:02:19.560><c> new</c><00:02:19.879><c> keyword</c><00:02:20.280><c> is</c><00:02:20.400><c> going</c>

00:02:20.550 --> 00:02:20.560 align:start position:0%
and delete so the new keyword is going
 

00:02:20.560 --> 00:02:22.710 align:start position:0%
and delete so the new keyword is going
to<00:02:20.800><c> allocate</c><00:02:21.360><c> a</c><00:02:21.480><c> little</c><00:02:21.640><c> bit</c><00:02:21.800><c> of</c><00:02:22.040><c> space</c><00:02:22.480><c> and</c><00:02:22.599><c> a</c>

00:02:22.710 --> 00:02:22.720 align:start position:0%
to allocate a little bit of space and a
 

00:02:22.720 --> 00:02:24.949 align:start position:0%
to allocate a little bit of space and a
little<00:02:22.879><c> bit</c><00:02:23.000><c> of</c><00:02:23.160><c> memory</c><00:02:23.519><c> to</c><00:02:23.720><c> hold</c><00:02:24.200><c> our</c><00:02:24.440><c> Dynamic</c>

00:02:24.949 --> 00:02:24.959 align:start position:0%
little bit of memory to hold our Dynamic
 

00:02:24.959 --> 00:02:27.190 align:start position:0%
little bit of memory to hold our Dynamic
values<00:02:25.879><c> and</c><00:02:26.000><c> then</c><00:02:26.160><c> the</c><00:02:26.280><c> delete</c><00:02:26.680><c> keyword</c><00:02:27.080><c> is</c>

00:02:27.190 --> 00:02:27.200 align:start position:0%
values and then the delete keyword is
 

00:02:27.200 --> 00:02:28.949 align:start position:0%
values and then the delete keyword is
going<00:02:27.360><c> to</c><00:02:27.519><c> free</c><00:02:27.840><c> up</c><00:02:28.040><c> that</c><00:02:28.160><c> memory</c><00:02:28.560><c> once</c><00:02:28.760><c> we're</c>

00:02:28.949 --> 00:02:28.959 align:start position:0%
going to free up that memory once we're
 

00:02:28.959 --> 00:02:30.830 align:start position:0%
going to free up that memory once we're
done<00:02:29.160><c> with</c><00:02:29.319><c> that</c><00:02:29.640><c> and</c><00:02:29.959><c> allocate</c><00:02:30.319><c> it</c><00:02:30.480><c> back</c><00:02:30.680><c> over</c>

00:02:30.830 --> 00:02:30.840 align:start position:0%
done with that and allocate it back over
 

00:02:30.840 --> 00:02:32.990 align:start position:0%
done with that and allocate it back over
to<00:02:31.040><c> the</c><00:02:31.160><c> operating</c><00:02:31.680><c> system</c><00:02:32.040><c> to</c><00:02:32.200><c> be</c><00:02:32.360><c> in</c><00:02:32.560><c> control</c>

00:02:32.990 --> 00:02:33.000 align:start position:0%
to the operating system to be in control
 

00:02:33.000 --> 00:02:35.990 align:start position:0%
to the operating system to be in control
of<00:02:33.680><c> so</c><00:02:33.840><c> let's</c><00:02:34.040><c> create</c><00:02:34.360><c> a</c><00:02:34.599><c> one</c><00:02:34.959><c> Dynamic</c><00:02:35.480><c> integer</c>

00:02:35.990 --> 00:02:36.000 align:start position:0%
of so let's create a one Dynamic integer
 

00:02:36.000 --> 00:02:38.350 align:start position:0%
of so let's create a one Dynamic integer
value<00:02:36.720><c> and</c><00:02:36.959><c> allocate</c><00:02:37.440><c> that</c><00:02:37.560><c> memory</c><00:02:38.080><c> and</c><00:02:38.160><c> then</c>

00:02:38.350 --> 00:02:38.360 align:start position:0%
value and allocate that memory and then
 

00:02:38.360 --> 00:02:40.309 align:start position:0%
value and allocate that memory and then
go<00:02:38.519><c> on</c><00:02:38.800><c> and</c><00:02:39.000><c> go</c><00:02:39.120><c> ahead</c><00:02:39.319><c> and</c><00:02:39.480><c> delete</c><00:02:39.920><c> that</c><00:02:40.159><c> once</c>

00:02:40.309 --> 00:02:40.319 align:start position:0%
go on and go ahead and delete that once
 

00:02:40.319 --> 00:02:41.949 align:start position:0%
go on and go ahead and delete that once
we're<00:02:40.560><c> finished</c><00:02:40.959><c> with</c><00:02:41.159><c> that</c><00:02:41.480><c> so</c><00:02:41.640><c> let's</c><00:02:41.800><c> go</c>

00:02:41.949 --> 00:02:41.959 align:start position:0%
we're finished with that so let's go
 

00:02:41.959 --> 00:02:43.470 align:start position:0%
we're finished with that so let's go
ahead<00:02:42.120><c> and</c><00:02:42.319><c> add</c><00:02:42.519><c> some</c><00:02:42.760><c> code</c><00:02:43.200><c> and</c><00:02:43.280><c> we're</c><00:02:43.400><c> going</c>

00:02:43.470 --> 00:02:43.480 align:start position:0%
ahead and add some code and we're going
 

00:02:43.480 --> 00:02:45.630 align:start position:0%
ahead and add some code and we're going
to<00:02:43.680><c> allocate</c><00:02:44.200><c> space</c><00:02:44.519><c> for</c><00:02:44.760><c> one</c><00:02:45.120><c> additional</c>

00:02:45.630 --> 00:02:45.640 align:start position:0%
to allocate space for one additional
 

00:02:45.640 --> 00:02:48.030 align:start position:0%
to allocate space for one additional
Dynamic<00:02:46.200><c> integer</c><00:02:47.040><c> so</c><00:02:47.200><c> I'm</c><00:02:47.319><c> going</c><00:02:47.400><c> to</c><00:02:47.599><c> declare</c>

00:02:48.030 --> 00:02:48.040 align:start position:0%
Dynamic integer so I'm going to declare
 

00:02:48.040 --> 00:02:51.790 align:start position:0%
Dynamic integer so I'm going to declare
that<00:02:48.239><c> up</c><00:02:48.599><c> here</c><00:02:49.599><c> so</c><00:02:49.760><c> let's</c><00:02:50.000><c> just</c><00:02:50.239><c> insert</c><00:02:50.840><c> that</c>

00:02:51.790 --> 00:02:51.800 align:start position:0%
that up here so let's just insert that
 

00:02:51.800 --> 00:02:54.070 align:start position:0%
that up here so let's just insert that
and<00:02:52.080><c> this</c><00:02:52.159><c> is</c><00:02:52.280><c> going</c><00:02:52.360><c> to</c><00:02:52.519><c> be</c><00:02:52.640><c> of</c><00:02:52.879><c> type</c><00:02:53.159><c> in</c><00:02:53.519><c> Star</c>

00:02:54.070 --> 00:02:54.080 align:start position:0%
and this is going to be of type in Star
 

00:02:54.080 --> 00:02:56.070 align:start position:0%
and this is going to be of type in Star
since<00:02:54.360><c> this</c><00:02:54.480><c> is</c><00:02:54.599><c> a</c><00:02:54.800><c> pointer</c><00:02:55.159><c> to</c><00:02:55.319><c> a</c><00:02:55.519><c> dynamic</c>

00:02:56.070 --> 00:02:56.080 align:start position:0%
since this is a pointer to a dynamic
 

00:02:56.080 --> 00:02:59.110 align:start position:0%
since this is a pointer to a dynamic
integer<00:02:57.040><c> so</c><00:02:57.239><c> let's</c><00:02:57.400><c> do</c><00:02:57.680><c> in</c><00:02:58.000><c> Star</c><00:02:58.519><c> as</c><00:02:58.640><c> our</c><00:02:58.840><c> data</c>

00:02:59.110 --> 00:02:59.120 align:start position:0%
integer so let's do in Star as our data
 

00:02:59.120 --> 00:03:01.830 align:start position:0%
integer so let's do in Star as our data
type<00:02:59.560><c> and</c><00:02:59.680><c> let's</c><00:02:59.840><c> let's</c><00:03:00.040><c> just</c><00:03:00.159><c> call</c><00:03:00.400><c> this</c><00:03:01.040><c> num</c>

00:03:01.830 --> 00:03:01.840 align:start position:0%
type and let's let's just call this num
 

00:03:01.840 --> 00:03:03.309 align:start position:0%
type and let's let's just call this num
pointer<00:03:02.440><c> and</c><00:03:02.560><c> we're</c><00:03:02.680><c> going</c><00:03:02.800><c> to</c><00:03:02.920><c> set</c><00:03:03.120><c> this</c>

00:03:03.309 --> 00:03:03.319 align:start position:0%
pointer and we're going to set this
 

00:03:03.319 --> 00:03:05.270 align:start position:0%
pointer and we're going to set this
equal<00:03:03.599><c> to</c><00:03:03.840><c> null</c><00:03:04.319><c> pointer</c><00:03:04.680><c> as</c><00:03:04.879><c> kind</c><00:03:05.000><c> of</c><00:03:05.120><c> a</c>

00:03:05.270 --> 00:03:05.280 align:start position:0%
equal to null pointer as kind of a
 

00:03:05.280 --> 00:03:08.350 align:start position:0%
equal to null pointer as kind of a
default<00:03:06.000><c> value</c><00:03:07.000><c> now</c><00:03:07.200><c> inside</c><00:03:07.480><c> of</c><00:03:07.599><c> our</c><00:03:07.799><c> TR</c><00:03:08.080><c> catch</c>

00:03:08.350 --> 00:03:08.360 align:start position:0%
default value now inside of our TR catch
 

00:03:08.360 --> 00:03:10.149 align:start position:0%
default value now inside of our TR catch
statement<00:03:08.840><c> let's</c><00:03:09.080><c> remember</c><00:03:09.480><c> those</c><00:03:09.720><c> keywords</c>

00:03:10.149 --> 00:03:10.159 align:start position:0%
statement let's remember those keywords
 

00:03:10.159 --> 00:03:12.470 align:start position:0%
statement let's remember those keywords
that<00:03:10.319><c> we</c><00:03:10.440><c> wanted</c><00:03:10.680><c> to</c><00:03:10.879><c> use</c><00:03:11.519><c> so</c><00:03:11.680><c> the</c><00:03:11.840><c> new</c><00:03:12.080><c> keyword</c>

00:03:12.470 --> 00:03:12.480 align:start position:0%
that we wanted to use so the new keyword
 

00:03:12.480 --> 00:03:14.149 align:start position:0%
that we wanted to use so the new keyword
remember<00:03:12.840><c> is</c><00:03:12.959><c> going</c><00:03:13.040><c> to</c><00:03:13.159><c> be</c><00:03:13.360><c> responsible</c><00:03:13.879><c> for</c>

00:03:14.149 --> 00:03:14.159 align:start position:0%
remember is going to be responsible for
 

00:03:14.159 --> 00:03:17.149 align:start position:0%
remember is going to be responsible for
actually<00:03:14.640><c> allocating</c><00:03:15.280><c> the</c><00:03:15.480><c> space</c><00:03:16.200><c> to</c><00:03:16.400><c> store</c>

00:03:17.149 --> 00:03:17.159 align:start position:0%
actually allocating the space to store
 

00:03:17.159 --> 00:03:19.350 align:start position:0%
actually allocating the space to store
our<00:03:17.360><c> Dynamic</c><00:03:17.840><c> integer</c><00:03:18.599><c> so</c><00:03:18.760><c> let's</c><00:03:19.000><c> add</c><00:03:19.159><c> that</c>

00:03:19.350 --> 00:03:19.360 align:start position:0%
our Dynamic integer so let's add that
 

00:03:19.360 --> 00:03:21.110 align:start position:0%
our Dynamic integer so let's add that
inside<00:03:19.640><c> of</c><00:03:19.720><c> our</c><00:03:19.879><c> Tri</c><00:03:20.200><c> catch</c><00:03:20.480><c> statement</c><00:03:20.959><c> just</c>

00:03:21.110 --> 00:03:21.120 align:start position:0%
inside of our Tri catch statement just
 

00:03:21.120 --> 00:03:23.110 align:start position:0%
inside of our Tri catch statement just
in<00:03:21.280><c> case</c><00:03:21.480><c> we</c><00:03:21.599><c> run</c><00:03:21.799><c> into</c><00:03:22.040><c> any</c><00:03:22.239><c> errors</c><00:03:22.959><c> while</c>

00:03:23.110 --> 00:03:23.120 align:start position:0%
in case we run into any errors while
 

00:03:23.120 --> 00:03:25.390 align:start position:0%
in case we run into any errors while
we're<00:03:23.280><c> allocating</c><00:03:23.879><c> this</c><00:03:24.200><c> memory</c><00:03:25.200><c> so</c><00:03:25.319><c> I'm</c>

00:03:25.390 --> 00:03:25.400 align:start position:0%
we're allocating this memory so I'm
 

00:03:25.400 --> 00:03:28.030 align:start position:0%
we're allocating this memory so I'm
going<00:03:25.519><c> to</c><00:03:25.599><c> add</c><00:03:25.720><c> a</c><00:03:25.840><c> new</c><00:03:26.440><c> space</c><00:03:26.799><c> in</c><00:03:27.080><c> here</c><00:03:27.840><c> let's</c>

00:03:28.030 --> 00:03:28.040 align:start position:0%
going to add a new space in here let's
 

00:03:28.040 --> 00:03:30.390 align:start position:0%
going to add a new space in here let's
do<00:03:28.200><c> num</c><00:03:28.599><c> pointer</c>

00:03:30.390 --> 00:03:30.400 align:start position:0%
do num pointer
 

00:03:30.400 --> 00:03:34.030 align:start position:0%
do num pointer
equals<00:03:31.560><c> new</c><00:03:32.560><c> int</c><00:03:33.360><c> so</c><00:03:33.560><c> now</c><00:03:33.720><c> we</c><00:03:33.840><c> have</c>

00:03:34.030 --> 00:03:34.040 align:start position:0%
equals new int so now we have
 

00:03:34.040 --> 00:03:35.990 align:start position:0%
equals new int so now we have
successfully<00:03:34.760><c> allocated</c><00:03:35.319><c> the</c><00:03:35.439><c> memory</c><00:03:35.799><c> to</c>

00:03:35.990 --> 00:03:36.000 align:start position:0%
successfully allocated the memory to
 

00:03:36.000 --> 00:03:38.509 align:start position:0%
successfully allocated the memory to
store<00:03:36.400><c> that</c><00:03:36.560><c> Dynamic</c><00:03:37.040><c> integer</c><00:03:37.920><c> so</c><00:03:38.120><c> now</c><00:03:38.280><c> we</c><00:03:38.360><c> can</c>

00:03:38.509 --> 00:03:38.519 align:start position:0%
store that Dynamic integer so now we can
 

00:03:38.519 --> 00:03:40.550 align:start position:0%
store that Dynamic integer so now we can
just<00:03:38.720><c> go</c><00:03:38.879><c> ahead</c><00:03:39.080><c> and</c><00:03:39.319><c> set</c><00:03:39.599><c> that</c>

00:03:40.550 --> 00:03:40.560 align:start position:0%
just go ahead and set that
 

00:03:40.560 --> 00:03:44.190 align:start position:0%
just go ahead and set that
value<00:03:41.560><c> so</c><00:03:41.760><c> let's</c><00:03:41.920><c> set</c><00:03:42.120><c> our</c><00:03:42.319><c> value</c>

00:03:44.190 --> 00:03:44.200 align:start position:0%
value so let's set our value
 

00:03:44.200 --> 00:03:47.670 align:start position:0%
value so let's set our value
to<00:03:45.200><c> num</c><00:03:45.640><c> pointer</c><00:03:46.280><c> and</c><00:03:46.400><c> we'll</c><00:03:46.640><c> dreference</c><00:03:47.120><c> that</c>

00:03:47.670 --> 00:03:47.680 align:start position:0%
to num pointer and we'll dreference that
 

00:03:47.680 --> 00:03:50.949 align:start position:0%
to num pointer and we'll dreference that
with<00:03:47.799><c> our</c><00:03:48.280><c> star</c><00:03:49.280><c> over</c>

00:03:50.949 --> 00:03:50.959 align:start position:0%
with our star over
 

00:03:50.959 --> 00:03:53.830 align:start position:0%
with our star over
here<00:03:51.959><c> and</c><00:03:52.079><c> we</c><00:03:52.200><c> can</c><00:03:52.360><c> do</c><00:03:52.840><c> whatever</c><00:03:53.239><c> integer</c><00:03:53.640><c> we</c>

00:03:53.830 --> 00:03:53.840 align:start position:0%
here and we can do whatever integer we
 

00:03:53.840 --> 00:03:55.550 align:start position:0%
here and we can do whatever integer we
want<00:03:54.120><c> let's</c><00:03:54.280><c> just</c><00:03:54.439><c> pick</c><00:03:54.599><c> the</c><00:03:54.720><c> number</c>

00:03:55.550 --> 00:03:55.560 align:start position:0%
want let's just pick the number
 

00:03:55.560 --> 00:03:58.190 align:start position:0%
want let's just pick the number
42<00:03:56.560><c> so</c><00:03:56.720><c> now</c><00:03:56.879><c> we've</c><00:03:57.079><c> successfully</c><00:03:57.680><c> allocated</c>

00:03:58.190 --> 00:03:58.200 align:start position:0%
42 so now we've successfully allocated
 

00:03:58.200 --> 00:04:00.550 align:start position:0%
42 so now we've successfully allocated
that<00:03:58.360><c> memory</c><00:03:58.760><c> and</c><00:03:58.920><c> set</c><00:03:59.200><c> that</c><00:03:59.400><c> value</c><00:04:00.159><c> to</c><00:04:00.360><c> our</c>

00:04:00.550 --> 00:04:00.560 align:start position:0%
that memory and set that value to our
 

00:04:00.560 --> 00:04:03.589 align:start position:0%
that memory and set that value to our
integer<00:04:01.000><c> value</c><00:04:01.840><c> 42</c><00:04:02.840><c> now</c><00:04:03.000><c> I</c><00:04:03.079><c> just</c><00:04:03.200><c> want</c><00:04:03.280><c> to</c><00:04:03.480><c> go</c>

00:04:03.589 --> 00:04:03.599 align:start position:0%
integer value 42 now I just want to go
 

00:04:03.599 --> 00:04:05.550 align:start position:0%
integer value 42 now I just want to go
ahead<00:04:03.879><c> and</c><00:04:04.120><c> print</c><00:04:04.439><c> that</c><00:04:04.560><c> out</c><00:04:04.720><c> to</c><00:04:04.879><c> the</c><00:04:05.079><c> screen</c>

00:04:05.550 --> 00:04:05.560 align:start position:0%
ahead and print that out to the screen
 

00:04:05.560 --> 00:04:09.509 align:start position:0%
ahead and print that out to the screen
so<00:04:05.760><c> let's</c><00:04:06.439><c> do</c><00:04:07.439><c> c</c>

00:04:09.509 --> 00:04:09.519 align:start position:0%
so let's do c
 

00:04:09.519 --> 00:04:15.390 align:start position:0%
so let's do c
out<00:04:10.519><c> and</c><00:04:10.640><c> we'll</c><00:04:10.840><c> call</c><00:04:11.120><c> this</c><00:04:12.040><c> Dynamic</c>

00:04:15.390 --> 00:04:15.400 align:start position:0%
 
 

00:04:15.400 --> 00:04:17.590 align:start position:0%
 
number<00:04:16.400><c> and</c><00:04:16.519><c> then</c><00:04:16.639><c> we'll</c><00:04:16.919><c> print</c><00:04:17.160><c> out</c><00:04:17.440><c> that</c>

00:04:17.590 --> 00:04:17.600 align:start position:0%
number and then we'll print out that
 

00:04:17.600 --> 00:04:20.069 align:start position:0%
number and then we'll print out that
dereferenced<00:04:18.440><c> num</c>

00:04:20.069 --> 00:04:20.079 align:start position:0%
dereferenced num
 

00:04:20.079 --> 00:04:22.550 align:start position:0%
dereferenced num
pointer<00:04:21.079><c> so</c><00:04:21.280><c> this</c><00:04:21.359><c> is</c><00:04:21.519><c> going</c><00:04:21.680><c> to</c><00:04:21.919><c> print</c><00:04:22.280><c> the</c>

00:04:22.550 --> 00:04:22.560 align:start position:0%
pointer so this is going to print the
 

00:04:22.560 --> 00:04:23.950 align:start position:0%
pointer so this is going to print the
value

00:04:23.950 --> 00:04:23.960 align:start position:0%
value
 

00:04:23.960 --> 00:04:27.749 align:start position:0%
value
42<00:04:24.960><c> so</c><00:04:25.120><c> let's</c><00:04:25.320><c> just</c><00:04:25.479><c> end</c><00:04:25.680><c> it</c><00:04:25.960><c> with</c><00:04:26.240><c> a</c><00:04:26.440><c> new</c>

00:04:27.749 --> 00:04:27.759 align:start position:0%
42 so let's just end it with a new
 

00:04:27.759 --> 00:04:30.029 align:start position:0%
42 so let's just end it with a new
line<00:04:28.759><c> now</c><00:04:28.919><c> this</c><00:04:29.039><c> is</c><00:04:29.160><c> going</c><00:04:29.280><c> to</c><00:04:29.440><c> print</c><00:04:29.880><c> that</c>

00:04:30.029 --> 00:04:30.039 align:start position:0%
line now this is going to print that
 

00:04:30.039 --> 00:04:32.350 align:start position:0%
line now this is going to print that
value<00:04:30.280><c> to</c><00:04:30.440><c> the</c><00:04:30.600><c> screen</c><00:04:31.280><c> but</c><00:04:31.520><c> remember</c><00:04:32.199><c> now</c>

00:04:32.350 --> 00:04:32.360 align:start position:0%
value to the screen but remember now
 

00:04:32.360 --> 00:04:34.390 align:start position:0%
value to the screen but remember now
that<00:04:32.479><c> we've</c><00:04:32.680><c> allocated</c><00:04:33.240><c> that</c><00:04:33.400><c> memory</c><00:04:33.960><c> we</c><00:04:34.080><c> are</c>

00:04:34.390 --> 00:04:34.400 align:start position:0%
that we've allocated that memory we are
 

00:04:34.400 --> 00:04:36.909 align:start position:0%
that we've allocated that memory we are
responsible<00:04:35.039><c> for</c><00:04:35.320><c> deallocating</c><00:04:36.039><c> that</c><00:04:36.400><c> memory</c>

00:04:36.909 --> 00:04:36.919 align:start position:0%
responsible for deallocating that memory
 

00:04:36.919 --> 00:04:38.990 align:start position:0%
responsible for deallocating that memory
so<00:04:37.080><c> let's</c><00:04:37.280><c> use</c><00:04:37.520><c> that</c><00:04:37.720><c> delete</c><00:04:38.039><c> keyword</c><00:04:38.560><c> to</c><00:04:38.720><c> free</c>

00:04:38.990 --> 00:04:39.000 align:start position:0%
so let's use that delete keyword to free
 

00:04:39.000 --> 00:04:40.510 align:start position:0%
so let's use that delete keyword to free
up<00:04:39.199><c> this</c><00:04:39.360><c> memory</c><00:04:39.759><c> now</c><00:04:39.919><c> that</c><00:04:40.039><c> we're</c><00:04:40.240><c> actually</c>

00:04:40.510 --> 00:04:40.520 align:start position:0%
up this memory now that we're actually
 

00:04:40.520 --> 00:04:42.070 align:start position:0%
up this memory now that we're actually
finished<00:04:40.919><c> with</c><00:04:41.039><c> it</c><00:04:41.199><c> and</c><00:04:41.360><c> we've</c><00:04:41.560><c> printed</c><00:04:41.919><c> that</c>

00:04:42.070 --> 00:04:42.080 align:start position:0%
finished with it and we've printed that
 

00:04:42.080 --> 00:04:44.950 align:start position:0%
finished with it and we've printed that
value<00:04:42.360><c> to</c><00:04:42.560><c> the</c><00:04:43.199><c> screen</c><00:04:44.199><c> so</c><00:04:44.320><c> let's</c><00:04:44.520><c> go</c><00:04:44.680><c> down</c>

00:04:44.950 --> 00:04:44.960 align:start position:0%
value to the screen so let's go down
 

00:04:44.960 --> 00:04:49.550 align:start position:0%
value to the screen so let's go down
here<00:04:45.360><c> and</c><00:04:45.479><c> all</c><00:04:45.680><c> we</c><00:04:45.759><c> need</c><00:04:45.919><c> to</c><00:04:46.080><c> do</c><00:04:47.000><c> is</c><00:04:47.759><c> delete</c><00:04:48.759><c> num</c>

00:04:49.550 --> 00:04:49.560 align:start position:0%
here and all we need to do is delete num
 

00:04:49.560 --> 00:04:51.830 align:start position:0%
here and all we need to do is delete num
pointer<00:04:50.320><c> so</c><00:04:50.520><c> this</c><00:04:50.600><c> is</c><00:04:50.840><c> giving</c><00:04:51.160><c> that</c><00:04:51.360><c> memory</c>

00:04:51.830 --> 00:04:51.840 align:start position:0%
pointer so this is giving that memory
 

00:04:51.840 --> 00:04:53.510 align:start position:0%
pointer so this is giving that memory
back<00:04:52.039><c> to</c><00:04:52.199><c> the</c><00:04:52.400><c> operating</c><00:04:52.880><c> system</c><00:04:53.160><c> to</c><00:04:53.280><c> be</c>

00:04:53.510 --> 00:04:53.520 align:start position:0%
back to the operating system to be
 

00:04:53.520 --> 00:04:55.710 align:start position:0%
back to the operating system to be
responsible<00:04:54.160><c> for</c><00:04:54.720><c> in</c><00:04:54.880><c> case</c><00:04:55.199><c> any</c><00:04:55.440><c> other</c>

00:04:55.710 --> 00:04:55.720 align:start position:0%
responsible for in case any other
 

00:04:55.720 --> 00:04:57.710 align:start position:0%
responsible for in case any other
applications<00:04:56.400><c> are</c><00:04:56.560><c> needing</c><00:04:56.840><c> to</c><00:04:57.080><c> allocate</c><00:04:57.520><c> or</c>

00:04:57.710 --> 00:04:57.720 align:start position:0%
applications are needing to allocate or
 

00:04:57.720 --> 00:05:00.070 align:start position:0%
applications are needing to allocate or
deallocate<00:04:58.320><c> memory</c><00:04:58.960><c> or</c><00:04:59.160><c> maybe</c><00:04:59.440><c> the</c><00:04:59.759><c> system</c>

00:05:00.070 --> 00:05:00.080 align:start position:0%
deallocate memory or maybe the system
 

00:05:00.080 --> 00:05:02.029 align:start position:0%
deallocate memory or maybe the system
itself<00:05:00.400><c> needs</c><00:05:00.759><c> additional</c><00:05:01.160><c> memory</c><00:05:01.720><c> so</c><00:05:01.919><c> that's</c>

00:05:02.029 --> 00:05:02.039 align:start position:0%
itself needs additional memory so that's
 

00:05:02.039 --> 00:05:04.070 align:start position:0%
itself needs additional memory so that's
all<00:05:02.160><c> we</c><00:05:02.240><c> need</c><00:05:02.400><c> to</c><00:05:02.520><c> do</c><00:05:02.639><c> for</c><00:05:02.800><c> C++</c><00:05:03.600><c> it's</c><00:05:03.720><c> not</c><00:05:03.880><c> too</c>

00:05:04.070 --> 00:05:04.080 align:start position:0%
all we need to do for C++ it's not too
 

00:05:04.080 --> 00:05:06.070 align:start position:0%
all we need to do for C++ it's not too
challenging<00:05:04.639><c> so</c><00:05:04.800><c> let's</c><00:05:05.039><c> just</c><00:05:05.280><c> run</c><00:05:05.600><c> this</c><00:05:05.880><c> and</c>

00:05:06.070 --> 00:05:06.080 align:start position:0%
challenging so let's just run this and
 

00:05:06.080 --> 00:05:07.909 align:start position:0%
challenging so let's just run this and
see<00:05:06.320><c> what</c>

00:05:07.909 --> 00:05:07.919 align:start position:0%
see what
 

00:05:07.919 --> 00:05:11.909 align:start position:0%
see what
happens<00:05:08.919><c> now</c><00:05:09.080><c> I'm</c><00:05:09.240><c> going</c><00:05:09.400><c> to</c><00:05:09.680><c> compile</c><00:05:10.160><c> my</c>

00:05:11.909 --> 00:05:11.919 align:start position:0%
happens now I'm going to compile my
 

00:05:11.919 --> 00:05:15.909 align:start position:0%
happens now I'm going to compile my
application<00:05:12.919><c> and</c><00:05:13.080><c> generate</c><00:05:13.479><c> my</c>

00:05:15.909 --> 00:05:15.919 align:start position:0%
 
 

00:05:15.919 --> 00:05:18.390 align:start position:0%
 
executable<00:05:16.919><c> looks</c><00:05:17.199><c> good</c><00:05:17.400><c> no</c><00:05:17.600><c> errors</c><00:05:18.039><c> so</c><00:05:18.240><c> now</c>

00:05:18.390 --> 00:05:18.400 align:start position:0%
executable looks good no errors so now
 

00:05:18.400 --> 00:05:20.469 align:start position:0%
executable looks good no errors so now
we<00:05:18.560><c> have</c><00:05:18.759><c> this</c><00:05:18.919><c> additional</c><00:05:19.360><c> allocate</c>

00:05:20.469 --> 00:05:20.479 align:start position:0%
we have this additional allocate
 

00:05:20.479 --> 00:05:23.590 align:start position:0%
we have this additional allocate
executable<00:05:21.479><c> and</c><00:05:21.600><c> if</c><00:05:21.720><c> we</c><00:05:21.880><c> run</c><00:05:22.160><c> this</c><00:05:22.680><c> here</c><00:05:22.800><c> we</c><00:05:23.000><c> go</c>

00:05:23.590 --> 00:05:23.600 align:start position:0%
executable and if we run this here we go
 

00:05:23.600 --> 00:05:26.230 align:start position:0%
executable and if we run this here we go
Dynamic<00:05:24.080><c> number</c><00:05:24.520><c> is</c><00:05:24.800><c> 42</c><00:05:25.800><c> now</c><00:05:26.000><c> this</c>

00:05:26.230 --> 00:05:26.240 align:start position:0%
Dynamic number is 42 now this
 

00:05:26.240 --> 00:05:29.110 align:start position:0%
Dynamic number is 42 now this
dynamically<00:05:26.919><c> allocated</c><00:05:27.600><c> additional</c><00:05:28.240><c> space</c>

00:05:29.110 --> 00:05:29.120 align:start position:0%
dynamically allocated additional space
 

00:05:29.120 --> 00:05:31.230 align:start position:0%
dynamically allocated additional space
and<00:05:29.360><c> gave</c><00:05:29.840><c> us</c><00:05:30.000><c> a</c><00:05:30.160><c> pointer</c><00:05:30.479><c> to</c><00:05:30.639><c> an</c><00:05:30.800><c> integer</c>

00:05:31.230 --> 00:05:31.240 align:start position:0%
and gave us a pointer to an integer
 

00:05:31.240 --> 00:05:33.430 align:start position:0%
and gave us a pointer to an integer
value<00:05:31.600><c> that</c><00:05:31.720><c> we</c><00:05:31.840><c> could</c><00:05:32.039><c> use</c><00:05:32.639><c> then</c><00:05:32.800><c> we</c><00:05:32.919><c> set</c><00:05:33.240><c> that</c>

00:05:33.430 --> 00:05:33.440 align:start position:0%
value that we could use then we set that
 

00:05:33.440 --> 00:05:36.270 align:start position:0%
value that we could use then we set that
value<00:05:33.759><c> to</c><00:05:34.039><c> 42</c><00:05:34.720><c> in</c><00:05:34.919><c> memory</c><00:05:35.440><c> and</c><00:05:35.600><c> then</c><00:05:35.960><c> we</c><00:05:36.120><c> went</c>

00:05:36.270 --> 00:05:36.280 align:start position:0%
value to 42 in memory and then we went
 

00:05:36.280 --> 00:05:37.870 align:start position:0%
value to 42 in memory and then we went
ahead<00:05:36.479><c> and</c><00:05:36.639><c> deleted</c><00:05:37.080><c> that</c><00:05:37.199><c> memory</c><00:05:37.520><c> since</c><00:05:37.800><c> we</c>

00:05:37.870 --> 00:05:37.880 align:start position:0%
ahead and deleted that memory since we
 

00:05:37.880 --> 00:05:39.830 align:start position:0%
ahead and deleted that memory since we
were<00:05:38.080><c> finished</c><00:05:38.479><c> with</c><00:05:38.600><c> it</c><00:05:39.080><c> after</c><00:05:39.319><c> we</c><00:05:39.440><c> printed</c>

00:05:39.830 --> 00:05:39.840 align:start position:0%
were finished with it after we printed
 

00:05:39.840 --> 00:05:45.590 align:start position:0%
were finished with it after we printed
that<00:05:40.039><c> value</c><00:05:40.280><c> to</c><00:05:40.440><c> the</c>

00:05:45.590 --> 00:05:45.600 align:start position:0%
 
 

00:05:45.600 --> 00:05:48.029 align:start position:0%
 
console<00:05:46.600><c> now</c><00:05:46.720><c> let's</c><00:05:46.919><c> move</c><00:05:47.080><c> on</c><00:05:47.240><c> to</c><00:05:47.400><c> our</c><00:05:47.600><c> C</c>

00:05:48.029 --> 00:05:48.039 align:start position:0%
console now let's move on to our C
 

00:05:48.039 --> 00:05:49.510 align:start position:0%
console now let's move on to our C
program<00:05:48.520><c> and</c><00:05:48.639><c> so</c><00:05:48.840><c> this</c><00:05:48.960><c> is</c><00:05:49.039><c> going</c><00:05:49.160><c> to</c><00:05:49.240><c> be</c><00:05:49.400><c> a</c>

00:05:49.510 --> 00:05:49.520 align:start position:0%
program and so this is going to be a
 

00:05:49.520 --> 00:05:51.790 align:start position:0%
program and so this is going to be a
little<00:05:49.720><c> bit</c><00:05:49.919><c> lower</c><00:05:50.280><c> level</c><00:05:50.639><c> than</c><00:05:50.759><c> the</c><00:05:50.880><c> C++</c>

00:05:51.790 --> 00:05:51.800 align:start position:0%
little bit lower level than the C++
 

00:05:51.800 --> 00:05:53.950 align:start position:0%
little bit lower level than the C++
program<00:05:52.160><c> that</c><00:05:52.240><c> we</c><00:05:52.360><c> were</c><00:05:52.560><c> working</c><00:05:52.880><c> on</c><00:05:53.800><c> let's</c>

00:05:53.950 --> 00:05:53.960 align:start position:0%
program that we were working on let's
 

00:05:53.960 --> 00:05:56.469 align:start position:0%
program that we were working on let's
see<00:05:54.120><c> what</c><00:05:54.280><c> that</c><00:05:54.440><c> looks</c><00:05:54.720><c> like</c><00:05:54.960><c> inside</c><00:05:55.240><c> of</c>

00:05:56.469 --> 00:05:56.479 align:start position:0%
see what that looks like inside of
 

00:05:56.479 --> 00:06:00.990 align:start position:0%
see what that looks like inside of
here<00:05:57.479><c> let's</c><00:05:57.680><c> move</c><00:05:57.880><c> on</c><00:05:58.039><c> to</c><00:05:58.240><c> our</c><00:05:58.479><c> Alec</c>

00:06:00.990 --> 00:06:01.000 align:start position:0%
here let's move on to our Alec
 

00:06:01.000 --> 00:06:02.629 align:start position:0%
here let's move on to our Alec
and<00:06:01.160><c> let's</c><00:06:01.319><c> start</c><00:06:01.520><c> working</c><00:06:01.840><c> on</c><00:06:02.000><c> the</c><00:06:02.199><c> stub</c><00:06:02.520><c> that</c>

00:06:02.629 --> 00:06:02.639 align:start position:0%
and let's start working on the stub that
 

00:06:02.639 --> 00:06:05.350 align:start position:0%
and let's start working on the stub that
I've<00:06:02.880><c> already</c><00:06:03.639><c> created</c><00:06:04.639><c> now</c><00:06:04.800><c> we</c><00:06:04.919><c> have</c><00:06:05.080><c> our</c>

00:06:05.350 --> 00:06:05.360 align:start position:0%
I've already created now we have our
 

00:06:05.360 --> 00:06:07.110 align:start position:0%
I've already created now we have our
simple<00:06:05.960><c> application</c><00:06:06.479><c> which</c><00:06:06.599><c> is</c><00:06:06.800><c> basically</c>

00:06:07.110 --> 00:06:07.120 align:start position:0%
simple application which is basically
 

00:06:07.120 --> 00:06:09.150 align:start position:0%
simple application which is basically
doing<00:06:07.440><c> nothing</c><00:06:07.880><c> except</c><00:06:08.160><c> returning</c><00:06:08.720><c> success</c>

00:06:09.150 --> 00:06:09.160 align:start position:0%
doing nothing except returning success
 

00:06:09.160 --> 00:06:11.230 align:start position:0%
doing nothing except returning success
at<00:06:09.280><c> the</c><00:06:09.400><c> moment</c><00:06:09.960><c> so</c><00:06:10.120><c> let's</c><00:06:10.319><c> go</c><00:06:10.479><c> ahead</c><00:06:10.800><c> and</c><00:06:11.000><c> add</c>

00:06:11.230 --> 00:06:11.240 align:start position:0%
at the moment so let's go ahead and add
 

00:06:11.240 --> 00:06:12.870 align:start position:0%
at the moment so let's go ahead and add
our<00:06:11.479><c> code</c><00:06:12.160><c> and</c><00:06:12.280><c> this</c><00:06:12.360><c> is</c><00:06:12.479><c> going</c><00:06:12.560><c> to</c><00:06:12.680><c> be</c>

00:06:12.870 --> 00:06:12.880 align:start position:0%
our code and this is going to be
 

00:06:12.880 --> 00:06:14.990 align:start position:0%
our code and this is going to be
equivalent<00:06:13.319><c> to</c><00:06:13.479><c> what</c><00:06:13.599><c> we</c><00:06:13.720><c> wrote</c><00:06:13.960><c> in</c><00:06:14.080><c> the</c><00:06:14.199><c> C++</c>

00:06:14.990 --> 00:06:15.000 align:start position:0%
equivalent to what we wrote in the C++
 

00:06:15.000 --> 00:06:16.469 align:start position:0%
equivalent to what we wrote in the C++
application<00:06:15.880><c> but</c><00:06:16.000><c> we're</c><00:06:16.160><c> going</c><00:06:16.240><c> to</c><00:06:16.360><c> be</c>

00:06:16.469 --> 00:06:16.479 align:start position:0%
application but we're going to be
 

00:06:16.479 --> 00:06:19.070 align:start position:0%
application but we're going to be
working<00:06:16.759><c> on</c><00:06:16.919><c> this</c><00:06:17.120><c> in</c><00:06:17.240><c> the</c><00:06:17.360><c> C</c><00:06:17.840><c> version</c><00:06:18.199><c> of</c>

00:06:19.070 --> 00:06:19.080 align:start position:0%
working on this in the C version of
 

00:06:19.080 --> 00:06:22.110 align:start position:0%
working on this in the C version of
this<00:06:20.080><c> so</c><00:06:20.240><c> let's</c><00:06:20.440><c> create</c><00:06:20.800><c> our</c><00:06:21.000><c> new</c><00:06:21.280><c> pointer</c>

00:06:22.110 --> 00:06:22.120 align:start position:0%
this so let's create our new pointer
 

00:06:22.120 --> 00:06:24.189 align:start position:0%
this so let's create our new pointer
again<00:06:23.120><c> it's</c><00:06:23.280><c> still</c><00:06:23.479><c> going</c><00:06:23.599><c> to</c><00:06:23.680><c> be</c><00:06:23.800><c> of</c><00:06:23.960><c> type</c>

00:06:24.189 --> 00:06:24.199 align:start position:0%
again it's still going to be of type
 

00:06:24.199 --> 00:06:27.510 align:start position:0%
again it's still going to be of type
instar<00:06:25.039><c> and</c><00:06:25.199><c> let's</c><00:06:25.400><c> call</c><00:06:25.599><c> this</c><00:06:25.800><c> num</c><00:06:26.520><c> pointer</c>

00:06:27.510 --> 00:06:27.520 align:start position:0%
instar and let's call this num pointer
 

00:06:27.520 --> 00:06:29.350 align:start position:0%
instar and let's call this num pointer
but<00:06:27.680><c> now</c><00:06:27.880><c> we</c><00:06:28.039><c> have</c><00:06:28.240><c> two</c><00:06:28.639><c> different</c><00:06:28.960><c> keywords</c>

00:06:29.350 --> 00:06:29.360 align:start position:0%
but now we have two different keywords
 

00:06:29.360 --> 00:06:31.550 align:start position:0%
but now we have two different keywords
that<00:06:29.680><c> going</c><00:06:29.759><c> to</c><00:06:29.960><c> need</c><00:06:30.120><c> to</c><00:06:30.240><c> be</c><00:06:30.440><c> looking</c><00:06:30.759><c> at</c><00:06:31.440><c> now</c>

00:06:31.550 --> 00:06:31.560 align:start position:0%
that going to need to be looking at now
 

00:06:31.560 --> 00:06:33.390 align:start position:0%
that going to need to be looking at now
we're<00:06:31.680><c> going</c><00:06:31.800><c> to</c><00:06:31.919><c> be</c><00:06:32.039><c> working</c><00:06:32.360><c> with</c><00:06:32.639><c> Malik</c><00:06:33.240><c> and</c>

00:06:33.390 --> 00:06:33.400 align:start position:0%
we're going to be working with Malik and
 

00:06:33.400 --> 00:06:35.629 align:start position:0%
we're going to be working with Malik and
free<00:06:34.199><c> so</c><00:06:34.400><c> now</c><00:06:34.599><c> Malik</c><00:06:35.039><c> is</c><00:06:35.120><c> going</c><00:06:35.240><c> to</c><00:06:35.360><c> be</c><00:06:35.479><c> the</c>

00:06:35.629 --> 00:06:35.639 align:start position:0%
free so now Malik is going to be the
 

00:06:35.639 --> 00:06:37.710 align:start position:0%
free so now Malik is going to be the
keyword<00:06:36.000><c> we're</c><00:06:36.160><c> working</c><00:06:36.440><c> on</c><00:06:36.599><c> in</c><00:06:36.840><c> C</c><00:06:37.440><c> that</c><00:06:37.599><c> is</c>

00:06:37.710 --> 00:06:37.720 align:start position:0%
keyword we're working on in C that is
 

00:06:37.720 --> 00:06:39.550 align:start position:0%
keyword we're working on in C that is
going<00:06:37.800><c> to</c><00:06:37.919><c> be</c><00:06:38.120><c> responsible</c><00:06:38.720><c> for</c><00:06:39.000><c> allocating</c>

00:06:39.550 --> 00:06:39.560 align:start position:0%
going to be responsible for allocating
 

00:06:39.560 --> 00:06:41.870 align:start position:0%
going to be responsible for allocating
some<00:06:39.800><c> dynamic</c><00:06:40.280><c> memory</c><00:06:41.000><c> and</c><00:06:41.120><c> then</c><00:06:41.240><c> free</c><00:06:41.800><c> is</c>

00:06:41.870 --> 00:06:41.880 align:start position:0%
some dynamic memory and then free is
 

00:06:41.880 --> 00:06:43.510 align:start position:0%
some dynamic memory and then free is
going<00:06:42.000><c> to</c><00:06:42.120><c> free</c><00:06:42.400><c> up</c><00:06:42.599><c> that</c><00:06:42.759><c> memory</c><00:06:43.160><c> once</c><00:06:43.319><c> we're</c>

00:06:43.510 --> 00:06:43.520 align:start position:0%
going to free up that memory once we're
 

00:06:43.520 --> 00:06:45.629 align:start position:0%
going to free up that memory once we're
done<00:06:43.759><c> with</c><00:06:43.880><c> it</c><00:06:44.479><c> now</c><00:06:44.599><c> the</c><00:06:44.720><c> difference</c><00:06:45.080><c> between</c>

00:06:45.629 --> 00:06:45.639 align:start position:0%
done with it now the difference between
 

00:06:45.639 --> 00:06:49.110 align:start position:0%
done with it now the difference between
Malik<00:06:46.400><c> as</c><00:06:46.560><c> well</c><00:06:46.840><c> as</c><00:06:47.039><c> the</c><00:06:47.160><c> new</c><00:06:47.400><c> keyword</c><00:06:47.840><c> in</c><00:06:48.120><c> C++</c>

00:06:49.110 --> 00:06:49.120 align:start position:0%
Malik as well as the new keyword in C++
 

00:06:49.120 --> 00:06:50.710 align:start position:0%
Malik as well as the new keyword in C++
is<00:06:49.240><c> that</c><00:06:49.400><c> the</c><00:06:49.520><c> new</c><00:06:49.759><c> keyword</c><00:06:50.199><c> is</c><00:06:50.319><c> a</c><00:06:50.400><c> little</c><00:06:50.560><c> bit</c>

00:06:50.710 --> 00:06:50.720 align:start position:0%
is that the new keyword is a little bit
 

00:06:50.720 --> 00:06:53.629 align:start position:0%
is that the new keyword is a little bit
more<00:06:51.000><c> complex</c><00:06:51.880><c> and</c><00:06:52.000><c> it</c><00:06:52.160><c> goes</c><00:06:52.400><c> ahead</c><00:06:52.759><c> and</c><00:06:53.039><c> auto</c>

00:06:53.629 --> 00:06:53.639 align:start position:0%
more complex and it goes ahead and auto
 

00:06:53.639 --> 00:06:56.309 align:start position:0%
more complex and it goes ahead and auto
initializes<00:06:54.639><c> an</c><00:06:54.919><c> object</c><00:06:55.440><c> instead</c><00:06:55.720><c> of</c><00:06:55.919><c> Malik</c>

00:06:56.309 --> 00:06:56.319 align:start position:0%
initializes an object instead of Malik
 

00:06:56.319 --> 00:06:58.070 align:start position:0%
initializes an object instead of Malik
and<00:06:56.520><c> C</c><00:06:56.879><c> which</c><00:06:57.000><c> doesn't</c><00:06:57.240><c> do</c><00:06:57.479><c> any</c><00:06:57.720><c> kind</c><00:06:57.879><c> of</c>

00:06:58.070 --> 00:06:58.080 align:start position:0%
and C which doesn't do any kind of
 

00:06:58.080 --> 00:06:59.749 align:start position:0%
and C which doesn't do any kind of
initialization

00:06:59.749 --> 00:06:59.759 align:start position:0%
initialization
 

00:06:59.759 --> 00:07:01.629 align:start position:0%
initialization
so<00:06:59.919><c> let's</c><00:07:00.120><c> create</c><00:07:00.400><c> our</c><00:07:00.599><c> new</c><00:07:00.840><c> keyword</c><00:07:01.360><c> so</c><00:07:01.520><c> this</c>

00:07:01.629 --> 00:07:01.639 align:start position:0%
so let's create our new keyword so this
 

00:07:01.639 --> 00:07:03.909 align:start position:0%
so let's create our new keyword so this
is<00:07:01.759><c> going</c><00:07:01.840><c> to</c><00:07:02.160><c> be</c>

00:07:03.909 --> 00:07:03.919 align:start position:0%
is going to be
 

00:07:03.919 --> 00:07:06.990 align:start position:0%
is going to be
Malik<00:07:04.919><c> and</c><00:07:05.039><c> then</c><00:07:05.199><c> we</c><00:07:05.440><c> also</c><00:07:05.919><c> have</c><00:07:06.039><c> to</c><00:07:06.360><c> pass</c><00:07:06.720><c> the</c>

00:07:06.990 --> 00:07:07.000 align:start position:0%
Malik and then we also have to pass the
 

00:07:07.000 --> 00:07:09.629 align:start position:0%
Malik and then we also have to pass the
size<00:07:07.319><c> of</c><00:07:07.560><c> the</c><00:07:07.720><c> data</c><00:07:08.039><c> that</c><00:07:08.160><c> we</c><00:07:08.319><c> want</c><00:07:08.520><c> to</c><00:07:08.759><c> use</c><00:07:09.479><c> so</c>

00:07:09.629 --> 00:07:09.639 align:start position:0%
size of the data that we want to use so
 

00:07:09.639 --> 00:07:11.670 align:start position:0%
size of the data that we want to use so
we<00:07:09.800><c> have</c><00:07:09.960><c> this</c><00:07:10.160><c> really</c><00:07:10.440><c> convenient</c><00:07:11.039><c> size</c><00:07:11.400><c> of</c>

00:07:11.670 --> 00:07:11.680 align:start position:0%
we have this really convenient size of
 

00:07:11.680 --> 00:07:13.230 align:start position:0%
we have this really convenient size of
keyword<00:07:12.280><c> and</c><00:07:12.360><c> then</c><00:07:12.440><c> we're</c><00:07:12.560><c> going</c><00:07:12.680><c> to</c><00:07:12.879><c> pass</c><00:07:13.039><c> an</c>

00:07:13.230 --> 00:07:13.240 align:start position:0%
keyword and then we're going to pass an
 

00:07:13.240 --> 00:07:15.390 align:start position:0%
keyword and then we're going to pass an
integer<00:07:13.720><c> value</c><00:07:14.039><c> of</c><00:07:14.240><c> that</c><00:07:14.639><c> so</c><00:07:14.800><c> it</c><00:07:14.919><c> knows</c><00:07:15.280><c> how</c>

00:07:15.390 --> 00:07:15.400 align:start position:0%
integer value of that so it knows how
 

00:07:15.400 --> 00:07:17.390 align:start position:0%
integer value of that so it knows how
much<00:07:15.639><c> memory</c><00:07:15.960><c> it</c><00:07:16.080><c> needs</c><00:07:16.280><c> to</c><00:07:16.520><c> allocate</c><00:07:16.919><c> for</c><00:07:17.120><c> our</c>

00:07:17.390 --> 00:07:17.400 align:start position:0%
much memory it needs to allocate for our
 

00:07:17.400 --> 00:07:21.869 align:start position:0%
much memory it needs to allocate for our
program<00:07:18.280><c> so</c><00:07:18.400><c> let's</c><00:07:18.599><c> do</c><00:07:18.960><c> size</c><00:07:20.160><c> of</c><00:07:21.160><c> int</c><00:07:21.720><c> so</c>

00:07:21.869 --> 00:07:21.879 align:start position:0%
program so let's do size of int so
 

00:07:21.879 --> 00:07:23.790 align:start position:0%
program so let's do size of int so
that's<00:07:22.039><c> going</c><00:07:22.120><c> to</c><00:07:22.280><c> allocate</c><00:07:22.720><c> new</c><00:07:22.960><c> memory</c><00:07:23.639><c> and</c>

00:07:23.790 --> 00:07:23.800 align:start position:0%
that's going to allocate new memory and
 

00:07:23.800 --> 00:07:25.350 align:start position:0%
that's going to allocate new memory and
the<00:07:24.000><c> size</c><00:07:24.199><c> of</c><00:07:24.360><c> an</c><00:07:24.520><c> integer</c><00:07:24.960><c> that</c><00:07:25.039><c> we're</c><00:07:25.199><c> going</c>

00:07:25.350 --> 00:07:25.360 align:start position:0%
the size of an integer that we're going
 

00:07:25.360 --> 00:07:27.950 align:start position:0%
the size of an integer that we're going
to<00:07:25.479><c> be</c><00:07:25.639><c> able</c><00:07:25.879><c> to</c><00:07:26.080><c> use</c><00:07:26.639><c> afterwards</c><00:07:27.639><c> now</c><00:07:27.840><c> one</c>

00:07:27.950 --> 00:07:27.960 align:start position:0%
to be able to use afterwards now one
 

00:07:27.960 --> 00:07:29.309 align:start position:0%
to be able to use afterwards now one
more<00:07:28.199><c> thing</c><00:07:28.440><c> is</c><00:07:28.560><c> we're</c><00:07:28.720><c> going</c><00:07:28.879><c> to</c><00:07:29.039><c> have</c><00:07:29.160><c> to</c>

00:07:29.309 --> 00:07:29.319 align:start position:0%
more thing is we're going to have to
 

00:07:29.319 --> 00:07:32.589 align:start position:0%
more thing is we're going to have to
type<00:07:29.560><c> type</c><00:07:30.160><c> typ</c><00:07:30.520><c> cast</c><00:07:30.879><c> this</c><00:07:31.360><c> to</c><00:07:31.759><c> a</c><00:07:31.960><c> pointer</c><00:07:32.319><c> to</c>

00:07:32.589 --> 00:07:32.599 align:start position:0%
type type typ cast this to a pointer to
 

00:07:32.599 --> 00:07:35.189 align:start position:0%
type type typ cast this to a pointer to
an<00:07:32.759><c> integer</c><00:07:33.520><c> so</c><00:07:33.720><c> that</c><00:07:33.919><c> same</c><00:07:34.199><c> data</c><00:07:34.520><c> type</c><00:07:34.840><c> in</c>

00:07:35.189 --> 00:07:35.199 align:start position:0%
an integer so that same data type in
 

00:07:35.199 --> 00:07:37.790 align:start position:0%
an integer so that same data type in
Star<00:07:35.879><c> is</c><00:07:36.039><c> going</c><00:07:36.199><c> to</c><00:07:36.360><c> typ</c><00:07:36.759><c> cast</c><00:07:37.240><c> this</c><00:07:37.560><c> so</c><00:07:37.680><c> that</c>

00:07:37.790 --> 00:07:37.800 align:start position:0%
Star is going to typ cast this so that
 

00:07:37.800 --> 00:07:39.990 align:start position:0%
Star is going to typ cast this so that
we<00:07:37.919><c> can</c><00:07:38.160><c> put</c><00:07:38.440><c> that</c><00:07:38.639><c> pointer</c><00:07:39.039><c> value</c><00:07:39.560><c> inside</c><00:07:39.879><c> of</c>

00:07:39.990 --> 00:07:40.000 align:start position:0%
we can put that pointer value inside of
 

00:07:40.000 --> 00:07:41.790 align:start position:0%
we can put that pointer value inside of
our<00:07:40.120><c> nonp</c><00:07:40.479><c> pointer</c><00:07:40.840><c> variable</c><00:07:41.479><c> now</c><00:07:41.599><c> we've</c>

00:07:41.790 --> 00:07:41.800 align:start position:0%
our nonp pointer variable now we've
 

00:07:41.800 --> 00:07:43.950 align:start position:0%
our nonp pointer variable now we've
successfully<00:07:42.440><c> allocated</c><00:07:43.000><c> that</c><00:07:43.199><c> memory</c><00:07:43.840><c> so</c>

00:07:43.950 --> 00:07:43.960 align:start position:0%
successfully allocated that memory so
 

00:07:43.960 --> 00:07:45.990 align:start position:0%
successfully allocated that memory so
let's<00:07:44.159><c> do</c><00:07:44.280><c> a</c><00:07:44.520><c> quick</c><00:07:44.840><c> check</c><00:07:45.120><c> to</c><00:07:45.319><c> make</c><00:07:45.599><c> sure</c><00:07:45.840><c> this</c>

00:07:45.990 --> 00:07:46.000 align:start position:0%
let's do a quick check to make sure this
 

00:07:46.000 --> 00:07:47.950 align:start position:0%
let's do a quick check to make sure this
memory<00:07:46.360><c> allocation</c><00:07:46.919><c> was</c><00:07:47.159><c> successful</c><00:07:47.840><c> we</c>

00:07:47.950 --> 00:07:47.960 align:start position:0%
memory allocation was successful we
 

00:07:47.960 --> 00:07:49.909 align:start position:0%
memory allocation was successful we
don't<00:07:48.120><c> have</c><00:07:48.240><c> a</c><00:07:48.360><c> null</c><00:07:48.639><c> pointer</c><00:07:49.360><c> before</c><00:07:49.599><c> we</c><00:07:49.759><c> go</c>

00:07:49.909 --> 00:07:49.919 align:start position:0%
don't have a null pointer before we go
 

00:07:49.919 --> 00:07:53.830 align:start position:0%
don't have a null pointer before we go
ahead<00:07:50.199><c> and</c><00:07:50.400><c> set</c><00:07:50.759><c> the</c><00:07:51.000><c> value</c><00:07:51.520><c> of</c><00:07:51.759><c> this</c><00:07:51.960><c> Dynamic</c>

00:07:53.830 --> 00:07:53.840 align:start position:0%
ahead and set the value of this Dynamic
 

00:07:53.840 --> 00:07:56.110 align:start position:0%
ahead and set the value of this Dynamic
variable<00:07:54.840><c> so</c><00:07:55.000><c> let's</c><00:07:55.199><c> just</c><00:07:55.319><c> do</c><00:07:55.520><c> a</c><00:07:55.680><c> quick</c><00:07:55.919><c> if</c>

00:07:56.110 --> 00:07:56.120 align:start position:0%
variable so let's just do a quick if
 

00:07:56.120 --> 00:08:00.749 align:start position:0%
variable so let's just do a quick if
statement<00:07:56.639><c> so</c><00:07:57.440><c> if</c><00:07:58.440><c> num</c>

00:08:00.749 --> 00:08:00.759 align:start position:0%
statement so if num
 

00:08:00.759 --> 00:08:03.390 align:start position:0%
statement so if num
pointer<00:08:01.759><c> equals</c><00:08:02.159><c> null</c><00:08:02.680><c> so</c><00:08:02.800><c> that</c><00:08:02.919><c> means</c><00:08:03.120><c> our</c>

00:08:03.390 --> 00:08:03.400 align:start position:0%
pointer equals null so that means our
 

00:08:03.400 --> 00:08:05.510 align:start position:0%
pointer equals null so that means our
allocation<00:08:03.919><c> was</c><00:08:04.120><c> not</c>

00:08:05.510 --> 00:08:05.520 align:start position:0%
allocation was not
 

00:08:05.520 --> 00:08:08.270 align:start position:0%
allocation was not
successful<00:08:06.520><c> we're</c><00:08:06.680><c> just</c><00:08:06.800><c> going</c><00:08:06.919><c> to</c><00:08:07.080><c> go</c>

00:08:08.270 --> 00:08:08.280 align:start position:0%
successful we're just going to go
 

00:08:08.280 --> 00:08:11.149 align:start position:0%
successful we're just going to go
ahead<00:08:09.280><c> and</c><00:08:09.599><c> return</c><00:08:09.919><c> one</c><00:08:10.560><c> so</c><00:08:10.759><c> that's</c><00:08:10.919><c> kind</c><00:08:11.039><c> of</c>

00:08:11.149 --> 00:08:11.159 align:start position:0%
ahead and return one so that's kind of
 

00:08:11.159 --> 00:08:14.430 align:start position:0%
ahead and return one so that's kind of
meaning<00:08:11.639><c> an</c><00:08:11.800><c> unsuccess</c><00:08:12.639><c> of</c><00:08:12.800><c> the</c><00:08:13.440><c> application</c>

00:08:14.430 --> 00:08:14.440 align:start position:0%
meaning an unsuccess of the application
 

00:08:14.440 --> 00:08:16.469 align:start position:0%
meaning an unsuccess of the application
otherwise<00:08:14.960><c> we</c><00:08:15.080><c> can</c><00:08:15.199><c> go</c><00:08:15.400><c> ahead</c><00:08:15.800><c> and</c><00:08:16.000><c> set</c><00:08:16.280><c> our</c>

00:08:16.469 --> 00:08:16.479 align:start position:0%
otherwise we can go ahead and set our
 

00:08:16.479 --> 00:08:18.950 align:start position:0%
otherwise we can go ahead and set our
value<00:08:17.199><c> so</c><00:08:17.440><c> really</c><00:08:17.639><c> similar</c><00:08:17.960><c> to</c><00:08:18.120><c> C++</c>

00:08:18.950 --> 00:08:18.960 align:start position:0%
value so really similar to C++
 

00:08:18.960 --> 00:08:21.869 align:start position:0%
value so really similar to C++
syntactically<00:08:19.759><c> here</c><00:08:20.280><c> we</c><00:08:20.400><c> can</c><00:08:20.599><c> just</c><00:08:20.759><c> use</c><00:08:21.039><c> star</c>

00:08:21.869 --> 00:08:21.879 align:start position:0%
syntactically here we can just use star
 

00:08:21.879 --> 00:08:24.189 align:start position:0%
syntactically here we can just use star
nump<00:08:22.280><c> pointer</c><00:08:22.800><c> to</c><00:08:23.000><c> dfference</c><00:08:23.680><c> that</c><00:08:23.840><c> and</c><00:08:24.000><c> set</c>

00:08:24.189 --> 00:08:24.199 align:start position:0%
nump pointer to dfference that and set
 

00:08:24.199 --> 00:08:27.309 align:start position:0%
nump pointer to dfference that and set
the<00:08:24.440><c> value</c><00:08:25.319><c> at</c><00:08:25.520><c> that</c><00:08:26.039><c> location</c><00:08:27.039><c> and</c><00:08:27.159><c> we'll</c>

00:08:27.309 --> 00:08:27.319 align:start position:0%
the value at that location and we'll
 

00:08:27.319 --> 00:08:29.790 align:start position:0%
the value at that location and we'll
just<00:08:27.479><c> set</c><00:08:27.680><c> that</c><00:08:27.800><c> equal</c><00:08:28.080><c> to</c><00:08:28.319><c> 42</c><00:08:29.280><c> which</c><00:08:29.560><c> is</c><00:08:29.680><c> the</c>

00:08:29.790 --> 00:08:29.800 align:start position:0%
just set that equal to 42 which is the
 

00:08:29.800 --> 00:08:31.630 align:start position:0%
just set that equal to 42 which is the
same<00:08:30.000><c> integer</c><00:08:30.479><c> value</c><00:08:30.759><c> that</c><00:08:30.879><c> we</c><00:08:31.039><c> used</c>

00:08:31.630 --> 00:08:31.640 align:start position:0%
same integer value that we used
 

00:08:31.640 --> 00:08:33.949 align:start position:0%
same integer value that we used
previously<00:08:32.640><c> now</c><00:08:32.839><c> remember</c><00:08:33.240><c> we</c><00:08:33.399><c> have</c><00:08:33.519><c> to</c><00:08:33.680><c> use</c>

00:08:33.949 --> 00:08:33.959 align:start position:0%
previously now remember we have to use
 

00:08:33.959 --> 00:08:36.509 align:start position:0%
previously now remember we have to use
the<00:08:34.120><c> free</c><00:08:34.560><c> keyword</c><00:08:35.360><c> to</c><00:08:35.560><c> free</c><00:08:35.919><c> that</c><00:08:36.080><c> memory</c>

00:08:36.509 --> 00:08:36.519 align:start position:0%
the free keyword to free that memory
 

00:08:36.519 --> 00:08:38.310 align:start position:0%
the free keyword to free that memory
once<00:08:36.719><c> we're</c><00:08:36.959><c> done</c><00:08:37.479><c> so</c><00:08:37.599><c> let's</c><00:08:37.800><c> go</c><00:08:37.919><c> ahead</c><00:08:38.120><c> and</c>

00:08:38.310 --> 00:08:38.320 align:start position:0%
once we're done so let's go ahead and
 

00:08:38.320 --> 00:08:39.990 align:start position:0%
once we're done so let's go ahead and
print<00:08:38.599><c> that</c><00:08:38.760><c> value</c><00:08:39.000><c> to</c><00:08:39.159><c> the</c><00:08:39.320><c> screen</c><00:08:39.760><c> and</c><00:08:39.839><c> then</c>

00:08:39.990 --> 00:08:40.000 align:start position:0%
print that value to the screen and then
 

00:08:40.000 --> 00:08:43.350 align:start position:0%
print that value to the screen and then
free<00:08:40.360><c> that</c><00:08:40.680><c> up</c><00:08:41.680><c> so</c><00:08:41.839><c> I'm</c><00:08:41.919><c> going</c><00:08:42.000><c> to</c><00:08:42.120><c> do</c><00:08:42.360><c> print</c>

00:08:43.350 --> 00:08:43.360 align:start position:0%
free that up so I'm going to do print
 

00:08:43.360 --> 00:08:48.310 align:start position:0%
free that up so I'm going to do print
F<00:08:44.360><c> and</c><00:08:44.480><c> we'll</c><00:08:44.680><c> just</c><00:08:44.800><c> do</c><00:08:45.200><c> Dynamic</c>

00:08:48.310 --> 00:08:48.320 align:start position:0%
 
 

00:08:48.320 --> 00:08:50.750 align:start position:0%
 
number<00:08:49.320><c> and</c><00:08:49.440><c> we'll</c><00:08:49.720><c> print</c><00:08:50.080><c> that</c><00:08:50.240><c> integer</c>

00:08:50.750 --> 00:08:50.760 align:start position:0%
number and we'll print that integer
 

00:08:50.760 --> 00:08:53.790 align:start position:0%
number and we'll print that integer
value<00:08:51.240><c> and</c><00:08:51.399><c> then</c><00:08:51.519><c> the</c><00:08:51.640><c> new</c><00:08:52.200><c> line</c><00:08:53.200><c> and</c><00:08:53.320><c> then</c><00:08:53.600><c> add</c>

00:08:53.790 --> 00:08:53.800 align:start position:0%
value and then the new line and then add
 

00:08:53.800 --> 00:08:55.910 align:start position:0%
value and then the new line and then add
our<00:08:53.959><c> D</c><00:08:54.279><c> referenced</c><00:08:54.800><c> pointer</c><00:08:55.279><c> here</c><00:08:55.560><c> so</c><00:08:55.720><c> this</c><00:08:55.800><c> is</c>

00:08:55.910 --> 00:08:55.920 align:start position:0%
our D referenced pointer here so this is
 

00:08:55.920 --> 00:08:57.230 align:start position:0%
our D referenced pointer here so this is
just<00:08:56.040><c> going</c><00:08:56.120><c> to</c><00:08:56.279><c> print</c><00:08:56.519><c> the</c><00:08:56.640><c> same</c><00:08:56.880><c> thing</c><00:08:57.040><c> to</c>

00:08:57.230 --> 00:08:57.240 align:start position:0%
just going to print the same thing to
 

00:08:57.240 --> 00:09:01.710 align:start position:0%
just going to print the same thing to
the<00:08:57.360><c> screen</c><00:08:58.040><c> just</c><00:08:58.200><c> like</c><00:08:58.360><c> we</c><00:08:58.480><c> did</c><00:08:58.640><c> in</c><00:08:58.800><c> C++</c>

00:09:01.710 --> 00:09:01.720 align:start position:0%
 
 

00:09:01.720 --> 00:09:03.710 align:start position:0%
 
so<00:09:01.920><c> now</c><00:09:02.040><c> let's</c><00:09:02.279><c> go</c><00:09:02.399><c> ahead</c><00:09:02.760><c> and</c>

00:09:03.710 --> 00:09:03.720 align:start position:0%
so now let's go ahead and
 

00:09:03.720 --> 00:09:07.030 align:start position:0%
so now let's go ahead and
free<00:09:05.079><c> num</c>

00:09:07.030 --> 00:09:07.040 align:start position:0%
free num
 

00:09:07.040 --> 00:09:09.670 align:start position:0%
free num
pointer<00:09:08.040><c> so</c><00:09:08.279><c> we</c><00:09:08.440><c> have</c><00:09:08.720><c> allocated</c><00:09:09.320><c> our</c><00:09:09.440><c> new</c>

00:09:09.670 --> 00:09:09.680 align:start position:0%
pointer so we have allocated our new
 

00:09:09.680 --> 00:09:12.190 align:start position:0%
pointer so we have allocated our new
memory<00:09:10.440><c> made</c><00:09:10.680><c> sure</c><00:09:11.040><c> that</c><00:09:11.160><c> we</c><00:09:11.360><c> allocated</c>

00:09:12.190 --> 00:09:12.200 align:start position:0%
memory made sure that we allocated
 

00:09:12.200 --> 00:09:14.590 align:start position:0%
memory made sure that we allocated
successfully<00:09:13.200><c> set</c><00:09:13.440><c> our</c><00:09:13.680><c> value</c><00:09:14.079><c> printed</c><00:09:14.360><c> it</c><00:09:14.480><c> to</c>

00:09:14.590 --> 00:09:14.600 align:start position:0%
successfully set our value printed it to
 

00:09:14.600 --> 00:09:16.590 align:start position:0%
successfully set our value printed it to
the<00:09:14.760><c> console</c><00:09:15.399><c> and</c><00:09:15.480><c> then</c><00:09:15.600><c> free</c><00:09:16.040><c> that</c><00:09:16.200><c> memory</c>

00:09:16.590 --> 00:09:16.600 align:start position:0%
the console and then free that memory
 

00:09:16.600 --> 00:09:18.590 align:start position:0%
the console and then free that memory
back<00:09:16.720><c> to</c><00:09:16.839><c> the</c><00:09:17.040><c> operating</c><00:09:17.560><c> system</c><00:09:18.240><c> once</c><00:09:18.440><c> we</c>

00:09:18.590 --> 00:09:18.600 align:start position:0%
back to the operating system once we
 

00:09:18.600 --> 00:09:21.389 align:start position:0%
back to the operating system once we
were<00:09:18.760><c> done</c><00:09:19.000><c> with</c><00:09:19.120><c> it</c><00:09:20.079><c> so</c><00:09:20.320><c> let's</c><00:09:20.560><c> compile</c><00:09:21.120><c> and</c>

00:09:21.389 --> 00:09:21.399 align:start position:0%
were done with it so let's compile and
 

00:09:21.399 --> 00:09:24.030 align:start position:0%
were done with it so let's compile and
run<00:09:21.760><c> this</c><00:09:22.680><c> let</c><00:09:22.760><c> me</c><00:09:22.920><c> do</c>

00:09:24.030 --> 00:09:24.040 align:start position:0%
run this let me do
 

00:09:24.040 --> 00:09:28.590 align:start position:0%
run this let me do
GCC<00:09:25.040><c> allocate</c><00:09:25.600><c> do</c><00:09:25.800><c> C-</c><00:09:26.680><c> o</c><00:09:27.640><c> and</c><00:09:27.760><c> then</c><00:09:27.959><c> generate</c>

00:09:28.590 --> 00:09:28.600 align:start position:0%
GCC allocate do C- o and then generate
 

00:09:28.600 --> 00:09:30.230 align:start position:0%
GCC allocate do C- o and then generate
our<00:09:28.839><c> executable</c><00:09:29.600><c> looks</c><00:09:29.760><c> like</c><00:09:29.880><c> I've</c><00:09:30.000><c> got</c><00:09:30.120><c> a</c>

00:09:30.230 --> 00:09:30.240 align:start position:0%
our executable looks like I've got a
 

00:09:30.240 --> 00:09:32.790 align:start position:0%
our executable looks like I've got a
little<00:09:30.399><c> bit</c><00:09:30.519><c> of</c><00:09:30.680><c> extra</c><00:09:31.000><c> space</c><00:09:31.279><c> in</c><00:09:31.640><c> here</c><00:09:32.640><c> there</c>

00:09:32.790 --> 00:09:32.800 align:start position:0%
little bit of extra space in here there
 

00:09:32.800 --> 00:09:35.990 align:start position:0%
little bit of extra space in here there
we<00:09:33.120><c> go</c><00:09:34.120><c> so</c><00:09:34.360><c> now</c><00:09:34.519><c> we</c><00:09:34.680><c> have</c><00:09:34.800><c> our</c><00:09:35.000><c> new</c><00:09:35.320><c> executable</c>

00:09:35.990 --> 00:09:36.000 align:start position:0%
we go so now we have our new executable
 

00:09:36.000 --> 00:09:37.389 align:start position:0%
we go so now we have our new executable
let's<00:09:36.200><c> make</c><00:09:36.360><c> sure</c><00:09:36.600><c> that</c><00:09:36.720><c> that</c><00:09:36.880><c> prints</c><00:09:37.200><c> the</c>

00:09:37.389 --> 00:09:37.399 align:start position:0%
let's make sure that that prints the
 

00:09:37.399 --> 00:09:39.590 align:start position:0%
let's make sure that that prints the
same<00:09:37.720><c> thing</c><00:09:37.920><c> and</c><00:09:38.160><c> successfully</c><00:09:38.760><c> runs</c><00:09:39.399><c> just</c>

00:09:39.590 --> 00:09:39.600 align:start position:0%
same thing and successfully runs just
 

00:09:39.600 --> 00:09:42.069 align:start position:0%
same thing and successfully runs just
like<00:09:39.760><c> the</c><00:09:39.880><c> C++</c>

00:09:42.069 --> 00:09:42.079 align:start position:0%
like the C++
 

00:09:42.079 --> 00:09:44.949 align:start position:0%
like the C++
program<00:09:43.079><c> very</c><00:09:43.360><c> nice</c><00:09:43.800><c> so</c><00:09:44.079><c> Dynamic</c><00:09:44.480><c> number</c><00:09:44.800><c> is</c>

00:09:44.949 --> 00:09:44.959 align:start position:0%
program very nice so Dynamic number is
 

00:09:44.959 --> 00:09:48.230 align:start position:0%
program very nice so Dynamic number is
42<00:09:45.920><c> that</c><00:09:46.040><c> was</c><00:09:46.200><c> the</c><00:09:46.440><c> next</c><00:09:46.920><c> stage</c><00:09:47.760><c> of</c><00:09:48.000><c> our</c>

00:09:48.230 --> 00:09:48.240 align:start position:0%
42 that was the next stage of our
 

00:09:48.240 --> 00:09:54.430 align:start position:0%
42 that was the next stage of our
allocation<00:09:48.959><c> and</c>

00:09:54.430 --> 00:09:54.440 align:start position:0%
 
 

00:09:54.440 --> 00:09:56.590 align:start position:0%
 
deallocation<00:09:55.440><c> so</c><00:09:55.600><c> now</c><00:09:55.720><c> let's</c><00:09:55.880><c> move</c><00:09:56.079><c> on</c><00:09:56.200><c> to</c><00:09:56.360><c> our</c>

00:09:56.590 --> 00:09:56.600 align:start position:0%
deallocation so now let's move on to our
 

00:09:56.600 --> 00:09:59.030 align:start position:0%
deallocation so now let's move on to our
assembly<00:09:57.079><c> implementation</c><00:09:57.880><c> inside</c><00:09:58.120><c> of</c><00:09:58.279><c> armv7</c>

00:09:59.030 --> 00:09:59.040 align:start position:0%
assembly implementation inside of armv7
 

00:09:59.040 --> 00:09:59.910 align:start position:0%
assembly implementation inside of armv7
assem

00:09:59.910 --> 00:09:59.920 align:start position:0%
assem
 

00:09:59.920 --> 00:10:01.509 align:start position:0%
assem
and<00:10:00.040><c> this</c><00:10:00.120><c> is</c><00:10:00.240><c> going</c><00:10:00.320><c> to</c><00:10:00.440><c> be</c><00:10:00.600><c> the</c><00:10:00.760><c> lowest</c><00:10:01.200><c> level</c>

00:10:01.509 --> 00:10:01.519 align:start position:0%
and this is going to be the lowest level
 

00:10:01.519 --> 00:10:03.470 align:start position:0%
and this is going to be the lowest level
implementation<00:10:02.279><c> that</c><00:10:02.440><c> gives</c><00:10:02.640><c> us</c><00:10:02.880><c> the</c><00:10:03.079><c> most</c>

00:10:03.470 --> 00:10:03.480 align:start position:0%
implementation that gives us the most
 

00:10:03.480 --> 00:10:05.670 align:start position:0%
implementation that gives us the most
responsibilities<00:10:04.399><c> to</c><00:10:04.600><c> worry</c><00:10:04.880><c> about</c><00:10:05.519><c> while</c>

00:10:05.670 --> 00:10:05.680 align:start position:0%
responsibilities to worry about while
 

00:10:05.680 --> 00:10:07.790 align:start position:0%
responsibilities to worry about while
we're<00:10:05.880><c> implementing</c><00:10:06.519><c> this</c><00:10:06.839><c> process</c><00:10:07.480><c> now</c><00:10:07.640><c> we</c>

00:10:07.790 --> 00:10:07.800 align:start position:0%
we're implementing this process now we
 

00:10:07.800 --> 00:10:10.389 align:start position:0%
we're implementing this process now we
can<00:10:08.079><c> use</c><00:10:08.360><c> Malik</c><00:10:08.920><c> just</c><00:10:09.160><c> like</c><00:10:09.320><c> we</c><00:10:09.480><c> did</c><00:10:09.800><c> in</c><00:10:09.920><c> the</c><00:10:10.040><c> C</c>

00:10:10.389 --> 00:10:10.399 align:start position:0%
can use Malik just like we did in the C
 

00:10:10.399 --> 00:10:12.509 align:start position:0%
can use Malik just like we did in the C
application<00:10:11.000><c> and</c><00:10:11.200><c> call</c><00:10:11.560><c> that</c><00:10:12.120><c> but</c><00:10:12.279><c> this</c><00:10:12.360><c> is</c>

00:10:12.509 --> 00:10:12.519 align:start position:0%
application and call that but this is
 

00:10:12.519 --> 00:10:14.470 align:start position:0%
application and call that but this is
inside<00:10:12.800><c> of</c><00:10:12.920><c> the</c><00:10:13.040><c> C</c><00:10:13.360><c> standard</c><00:10:13.800><c> Library</c><00:10:14.320><c> so</c>

00:10:14.470 --> 00:10:14.480 align:start position:0%
inside of the C standard Library so
 

00:10:14.480 --> 00:10:17.350 align:start position:0%
inside of the C standard Library so
let's<00:10:14.720><c> instead</c><00:10:15.040><c> use</c><00:10:15.440><c> map</c><00:10:15.959><c> and</c><00:10:16.120><c> M</c><00:10:16.399><c> unmap</c><00:10:17.000><c> as</c><00:10:17.120><c> our</c>

00:10:17.350 --> 00:10:17.360 align:start position:0%
let's instead use map and M unmap as our
 

00:10:17.360 --> 00:10:19.790 align:start position:0%
let's instead use map and M unmap as our
two<00:10:17.640><c> keywords</c><00:10:18.120><c> to</c><00:10:18.279><c> be</c><00:10:18.519><c> responsible</c><00:10:19.079><c> for</c><00:10:19.680><c> while</c>

00:10:19.790 --> 00:10:19.800 align:start position:0%
two keywords to be responsible for while
 

00:10:19.800 --> 00:10:21.269 align:start position:0%
two keywords to be responsible for while
we're<00:10:20.000><c> dynamically</c><00:10:20.560><c> allocating</c><00:10:21.120><c> and</c>

00:10:21.269 --> 00:10:21.279 align:start position:0%
we're dynamically allocating and
 

00:10:21.279 --> 00:10:24.269 align:start position:0%
we're dynamically allocating and
deallocating<00:10:21.880><c> this</c><00:10:22.240><c> memory</c><00:10:23.160><c> now</c><00:10:23.440><c> mmap</c><00:10:23.920><c> allows</c>

00:10:24.269 --> 00:10:24.279 align:start position:0%
deallocating this memory now mmap allows
 

00:10:24.279 --> 00:10:26.670 align:start position:0%
deallocating this memory now mmap allows
you<00:10:24.440><c> to</c><00:10:24.680><c> map</c><00:10:25.040><c> a</c><00:10:25.240><c> file</c><00:10:25.560><c> or</c><00:10:25.720><c> a</c><00:10:25.959><c> device</c><00:10:26.360><c> into</c>

00:10:26.670 --> 00:10:26.680 align:start position:0%
you to map a file or a device into
 

00:10:26.680 --> 00:10:28.790 align:start position:0%
you to map a file or a device into
memory<00:10:27.399><c> but</c><00:10:27.560><c> it</c><00:10:27.680><c> does</c><00:10:27.920><c> allow</c><00:10:28.160><c> you</c><00:10:28.279><c> to</c><00:10:28.519><c> map</c>

00:10:28.790 --> 00:10:28.800 align:start position:0%
memory but it does allow you to map
 

00:10:28.800 --> 00:10:31.269 align:start position:0%
memory but it does allow you to map
memory<00:10:29.560><c> with</c><00:10:29.720><c> an</c><00:10:29.920><c> anonymous</c><00:10:30.560><c> file</c><00:10:30.920><c> if</c><00:10:31.040><c> you</c>

00:10:31.269 --> 00:10:31.279 align:start position:0%
memory with an anonymous file if you
 

00:10:31.279 --> 00:10:33.750 align:start position:0%
memory with an anonymous file if you
specify<00:10:31.839><c> the</c><00:10:32.000><c> flags</c><00:10:32.839><c> so</c><00:10:33.040><c> this</c><00:10:33.240><c> effectively</c>

00:10:33.750 --> 00:10:33.760 align:start position:0%
specify the flags so this effectively
 

00:10:33.760 --> 00:10:36.430 align:start position:0%
specify the flags so this effectively
lets<00:10:33.959><c> us</c><00:10:34.160><c> do</c><00:10:34.640><c> the</c><00:10:34.800><c> same</c><00:10:35.120><c> thing</c><00:10:35.959><c> so</c><00:10:36.120><c> let's</c><00:10:36.320><c> go</c>

00:10:36.430 --> 00:10:36.440 align:start position:0%
lets us do the same thing so let's go
 

00:10:36.440 --> 00:10:40.990 align:start position:0%
lets us do the same thing so let's go
into<00:10:36.880><c> our</c><00:10:37.279><c> file</c><00:10:37.920><c> and</c><00:10:38.160><c> let's</c><00:10:38.360><c> move</c><00:10:38.600><c> on</c><00:10:38.800><c> to</c><00:10:39.079><c> Alec</c>

00:10:40.990 --> 00:10:41.000 align:start position:0%
into our file and let's move on to Alec
 

00:10:41.000 --> 00:10:43.150 align:start position:0%
into our file and let's move on to Alec
assembly<00:10:42.000><c> and</c><00:10:42.240><c> here</c><00:10:42.360><c> is</c><00:10:42.519><c> our</c><00:10:42.680><c> stub</c>

00:10:43.150 --> 00:10:43.160 align:start position:0%
assembly and here is our stub
 

00:10:43.160 --> 00:10:44.230 align:start position:0%
assembly and here is our stub
application<00:10:43.680><c> that</c><00:10:43.760><c> we're</c><00:10:43.880><c> going</c><00:10:44.000><c> to</c><00:10:44.079><c> be</c>

00:10:44.230 --> 00:10:44.240 align:start position:0%
application that we're going to be
 

00:10:44.240 --> 00:10:46.509 align:start position:0%
application that we're going to be
working<00:10:44.600><c> inside</c><00:10:44.959><c> of</c><00:10:45.560><c> and</c><00:10:45.720><c> let's</c><00:10:45.959><c> just</c><00:10:46.240><c> edit</c>

00:10:46.509 --> 00:10:46.519 align:start position:0%
working inside of and let's just edit
 

00:10:46.519 --> 00:10:48.269 align:start position:0%
working inside of and let's just edit
our<00:10:46.760><c> allocate</c>

00:10:48.269 --> 00:10:48.279 align:start position:0%
our allocate
 

00:10:48.279 --> 00:10:51.269 align:start position:0%
our allocate
dos<00:10:49.279><c> now</c><00:10:49.480><c> I</c><00:10:49.600><c> already</c><00:10:50.040><c> have</c><00:10:50.279><c> a</c><00:10:50.519><c> program</c><00:10:50.959><c> kind</c><00:10:51.120><c> of</c>

00:10:51.269 --> 00:10:51.279 align:start position:0%
dos now I already have a program kind of
 

00:10:51.279 --> 00:10:53.269 align:start position:0%
dos now I already have a program kind of
set<00:10:51.519><c> up</c><00:10:51.720><c> that's</c><00:10:51.920><c> going</c><00:10:52.079><c> to</c><00:10:52.360><c> be</c><00:10:52.639><c> responsible</c>

00:10:53.269 --> 00:10:53.279 align:start position:0%
set up that's going to be responsible
 

00:10:53.279 --> 00:10:55.790 align:start position:0%
set up that's going to be responsible
for<00:10:53.519><c> deallocating</c><00:10:54.120><c> the</c><00:10:54.480><c> memory</c><00:10:54.839><c> for</c><00:10:55.079><c> us</c><00:10:55.600><c> so</c>

00:10:55.790 --> 00:10:55.800 align:start position:0%
for deallocating the memory for us so
 

00:10:55.800 --> 00:10:58.590 align:start position:0%
for deallocating the memory for us so
let's<00:10:56.000><c> go</c><00:10:56.160><c> ahead</c><00:10:56.480><c> and</c><00:10:56.680><c> call</c><00:10:56.959><c> our</c><00:10:57.200><c> map</c><00:10:57.760><c> CIS</c><00:10:58.200><c> call</c>

00:10:58.590 --> 00:10:58.600 align:start position:0%
let's go ahead and call our map CIS call
 

00:10:58.600 --> 00:11:00.710 align:start position:0%
let's go ahead and call our map CIS call
now<00:10:58.760><c> making</c><00:10:59.000><c> this</c><00:10:59.360><c> system</c><00:10:59.680><c> call</c><00:11:00.040><c> directly</c>

00:11:00.710 --> 00:11:00.720 align:start position:0%
now making this system call directly
 

00:11:00.720 --> 00:11:03.509 align:start position:0%
now making this system call directly
allows<00:11:01.040><c> us</c><00:11:01.240><c> to</c><00:11:01.560><c> invoke</c><00:11:02.000><c> the</c><00:11:02.200><c> operating</c><00:11:02.800><c> system</c>

00:11:03.509 --> 00:11:03.519 align:start position:0%
allows us to invoke the operating system
 

00:11:03.519 --> 00:11:05.629 align:start position:0%
allows us to invoke the operating system
instead<00:11:03.800><c> of</c><00:11:03.959><c> using</c><00:11:04.240><c> the</c><00:11:04.399><c> C</c><00:11:04.760><c> standard</c><00:11:05.160><c> Library</c>

00:11:05.629 --> 00:11:05.639 align:start position:0%
instead of using the C standard Library
 

00:11:05.639 --> 00:11:07.590 align:start position:0%
instead of using the C standard Library
call<00:11:05.880><c> to</c><00:11:06.120><c> Malik</c><00:11:06.800><c> from</c><00:11:07.000><c> inside</c><00:11:07.320><c> of</c><00:11:07.440><c> our</c>

00:11:07.590 --> 00:11:07.600 align:start position:0%
call to Malik from inside of our
 

00:11:07.600 --> 00:11:09.949 align:start position:0%
call to Malik from inside of our
assembly<00:11:08.320><c> application</c><00:11:09.320><c> so</c><00:11:09.480><c> let's</c><00:11:09.680><c> go</c><00:11:09.800><c> ahead</c>

00:11:09.949 --> 00:11:09.959 align:start position:0%
assembly application so let's go ahead
 

00:11:09.959 --> 00:11:11.910 align:start position:0%
assembly application so let's go ahead
and<00:11:10.120><c> add</c><00:11:10.279><c> some</c><00:11:10.480><c> code</c><00:11:10.920><c> I</c><00:11:11.079><c> have</c><00:11:11.360><c> this</c><00:11:11.560><c> function</c>

00:11:11.910 --> 00:11:11.920 align:start position:0%
and add some code I have this function
 

00:11:11.920 --> 00:11:14.230 align:start position:0%
and add some code I have this function
defined<00:11:12.360><c> up</c><00:11:12.639><c> here</c><00:11:13.160><c> that</c><00:11:13.360><c> already</c><00:11:13.760><c> has</c><00:11:14.000><c> our</c>

00:11:14.230 --> 00:11:14.240 align:start position:0%
defined up here that already has our
 

00:11:14.240 --> 00:11:17.110 align:start position:0%
defined up here that already has our
flags<00:11:14.839><c> set</c><00:11:15.560><c> so</c><00:11:15.760><c> all</c><00:11:15.880><c> we</c><00:11:16.000><c> need</c><00:11:16.120><c> to</c><00:11:16.279><c> do</c><00:11:16.560><c> is</c><00:11:16.760><c> make</c>

00:11:17.110 --> 00:11:17.120 align:start position:0%
flags set so all we need to do is make
 

00:11:17.120 --> 00:11:18.949 align:start position:0%
flags set so all we need to do is make
this<00:11:17.320><c> system</c><00:11:17.680><c> call</c><00:11:18.000><c> so</c><00:11:18.120><c> that</c><00:11:18.240><c> it</c><00:11:18.360><c> sees</c><00:11:18.800><c> what</c>

00:11:18.949 --> 00:11:18.959 align:start position:0%
this system call so that it sees what
 

00:11:18.959 --> 00:11:21.110 align:start position:0%
this system call so that it sees what
flags<00:11:19.279><c> we're</c><00:11:19.440><c> wanting</c><00:11:19.680><c> to</c><00:11:19.880><c> set</c><00:11:20.680><c> all</c><00:11:20.920><c> these</c>

00:11:21.110 --> 00:11:21.120 align:start position:0%
flags we're wanting to set all these
 

00:11:21.120 --> 00:11:22.949 align:start position:0%
flags we're wanting to set all these
flags<00:11:21.480><c> are</c><00:11:21.639><c> going</c><00:11:21.839><c> to</c><00:11:22.160><c> let</c><00:11:22.320><c> us</c><00:11:22.480><c> know</c><00:11:22.720><c> that</c><00:11:22.839><c> we</c>

00:11:22.949 --> 00:11:22.959 align:start position:0%
flags are going to let us know that we
 

00:11:22.959 --> 00:11:25.110 align:start position:0%
flags are going to let us know that we
want<00:11:23.120><c> to</c><00:11:23.360><c> let</c><00:11:23.519><c> the</c><00:11:23.680><c> kernel</c><00:11:24.160><c> choose</c><00:11:24.519><c> the</c><00:11:24.680><c> memory</c>

00:11:25.110 --> 00:11:25.120 align:start position:0%
want to let the kernel choose the memory
 

00:11:25.120 --> 00:11:26.590 align:start position:0%
want to let the kernel choose the memory
address<00:11:25.440><c> for</c><00:11:25.600><c> the</c><00:11:25.720><c> dynamic</c><00:11:26.160><c> memory</c><00:11:26.519><c> that</c>

00:11:26.590 --> 00:11:26.600 align:start position:0%
address for the dynamic memory that
 

00:11:26.600 --> 00:11:28.350 align:start position:0%
address for the dynamic memory that
we're<00:11:26.800><c> allocating</c><00:11:27.600><c> as</c><00:11:27.720><c> well</c><00:11:27.839><c> as</c><00:11:28.000><c> set</c><00:11:28.240><c> the</c>

00:11:28.350 --> 00:11:28.360 align:start position:0%
we're allocating as well as set the
 

00:11:28.360 --> 00:11:29.870 align:start position:0%
we're allocating as well as set the
number<00:11:28.600><c> of</c><00:11:28.800><c> bytes</c><00:11:29.079><c> that</c><00:11:29.320><c> are</c><00:11:29.440><c> wanting</c><00:11:29.680><c> to</c>

00:11:29.870 --> 00:11:29.880 align:start position:0%
number of bytes that are wanting to
 

00:11:29.880 --> 00:11:32.990 align:start position:0%
number of bytes that are wanting to
allocate<00:11:30.560><c> in</c><00:11:30.760><c> this</c><00:11:31.040><c> example</c><00:11:31.480><c> one</c><00:11:31.920><c> page</c><00:11:32.680><c> so</c><00:11:32.839><c> it</c>

00:11:32.990 --> 00:11:33.000 align:start position:0%
allocate in this example one page so it
 

00:11:33.000 --> 00:11:35.710 align:start position:0%
allocate in this example one page so it
also<00:11:33.240><c> lets</c><00:11:33.440><c> us</c><00:11:33.600><c> set</c><00:11:33.839><c> the</c><00:11:34.040><c> protections</c><00:11:35.000><c> for</c><00:11:35.360><c> the</c>

00:11:35.710 --> 00:11:35.720 align:start position:0%
also lets us set the protections for the
 

00:11:35.720 --> 00:11:37.470 align:start position:0%
also lets us set the protections for the
memory<00:11:36.160><c> if</c><00:11:36.279><c> we</c><00:11:36.399><c> want</c><00:11:36.560><c> to</c><00:11:36.760><c> be</c><00:11:36.920><c> able</c><00:11:37.079><c> to</c><00:11:37.279><c> make</c><00:11:37.399><c> it</c>

00:11:37.470 --> 00:11:37.480 align:start position:0%
memory if we want to be able to make it
 

00:11:37.480 --> 00:11:40.750 align:start position:0%
memory if we want to be able to make it
readable<00:11:38.079><c> writable</c><00:11:38.920><c> Etc</c><00:11:39.920><c> now</c><00:11:40.079><c> let's</c><00:11:40.279><c> go</c><00:11:40.440><c> ahead</c>

00:11:40.750 --> 00:11:40.760 align:start position:0%
readable writable Etc now let's go ahead
 

00:11:40.760 --> 00:11:43.870 align:start position:0%
readable writable Etc now let's go ahead
and<00:11:41.000><c> make</c><00:11:41.240><c> our</c><00:11:41.480><c> system</c><00:11:42.240><c> call</c><00:11:43.240><c> so</c><00:11:43.440><c> let's</c><00:11:43.639><c> create</c>

00:11:43.870 --> 00:11:43.880 align:start position:0%
and make our system call so let's create
 

00:11:43.880 --> 00:11:46.470 align:start position:0%
and make our system call so let's create
a<00:11:44.000><c> new</c><00:11:44.240><c> line</c><00:11:44.480><c> in</c>

00:11:46.470 --> 00:11:46.480 align:start position:0%
a new line in
 

00:11:46.480 --> 00:11:48.790 align:start position:0%
a new line in
here<00:11:47.480><c> now</c><00:11:47.639><c> we</c><00:11:47.800><c> have</c><00:11:47.880><c> to</c><00:11:48.040><c> look</c><00:11:48.160><c> up</c><00:11:48.320><c> the</c><00:11:48.480><c> system</c>

00:11:48.790 --> 00:11:48.800 align:start position:0%
here now we have to look up the system
 

00:11:48.800 --> 00:11:50.430 align:start position:0%
here now we have to look up the system
call<00:11:49.079><c> number</c><00:11:49.399><c> since</c><00:11:49.560><c> we're</c><00:11:49.760><c> calling</c><00:11:50.200><c> this</c>

00:11:50.430 --> 00:11:50.440 align:start position:0%
call number since we're calling this
 

00:11:50.440 --> 00:11:52.949 align:start position:0%
call number since we're calling this
directly<00:11:51.000><c> so</c><00:11:51.120><c> we</c><00:11:51.240><c> can</c><00:11:51.399><c> go</c><00:11:51.560><c> to</c><00:11:51.760><c> the</c><00:11:51.959><c> chromium</c><00:11:52.560><c> OS</c>

00:11:52.949 --> 00:11:52.959 align:start position:0%
directly so we can go to the chromium OS
 

00:11:52.959 --> 00:11:55.990 align:start position:0%
directly so we can go to the chromium OS
docs<00:11:53.760><c> go</c><00:11:54.000><c> down</c><00:11:54.320><c> to</c><00:11:54.680><c> our</c><00:11:54.880><c> 32-bit</c><00:11:55.560><c> version</c><00:11:55.839><c> of</c>

00:11:55.990 --> 00:11:56.000 align:start position:0%
docs go down to our 32-bit version of
 

00:11:56.000 --> 00:11:58.069 align:start position:0%
docs go down to our 32-bit version of
arm<00:11:56.399><c> since</c><00:11:56.560><c> we're</c><00:11:56.720><c> working</c><00:11:56.959><c> in</c><00:11:57.120><c> arm</c><00:11:57.399><c> V7</c>

00:11:58.069 --> 00:11:58.079 align:start position:0%
arm since we're working in arm V7
 

00:11:58.079 --> 00:12:00.269 align:start position:0%
arm since we're working in arm V7
assembly<00:11:58.880><c> and</c><00:11:58.959><c> then</c><00:11:59.240><c> all</c><00:11:59.360><c> we</c><00:11:59.480><c> have</c><00:11:59.600><c> to</c><00:11:59.720><c> do</c><00:12:00.000><c> is</c>

00:12:00.269 --> 00:12:00.279 align:start position:0%
assembly and then all we have to do is
 

00:12:00.279 --> 00:12:03.550 align:start position:0%
assembly and then all we have to do is
find<00:12:00.720><c> the</c><00:12:00.880><c> mmap</c><00:12:01.480><c> call</c><00:12:02.160><c> which</c><00:12:02.399><c> defines</c><00:12:03.040><c> the</c><00:12:03.200><c> CIS</c>

00:12:03.550 --> 00:12:03.560 align:start position:0%
find the mmap call which defines the CIS
 

00:12:03.560 --> 00:12:06.190 align:start position:0%
find the mmap call which defines the CIS
call<00:12:04.200><c> number</c><00:12:05.200><c> now</c><00:12:05.360><c> the</c><00:12:05.440><c> CIS</c><00:12:05.760><c> call</c><00:12:05.880><c> number</c><00:12:06.079><c> is</c>

00:12:06.190 --> 00:12:06.200 align:start position:0%
call number now the CIS call number is
 

00:12:06.200 --> 00:12:08.069 align:start position:0%
call number now the CIS call number is
going<00:12:06.279><c> to</c><00:12:06.399><c> be</c><00:12:06.519><c> stored</c><00:12:06.959><c> inside</c><00:12:07.279><c> of</c><00:12:07.399><c> our</c><00:12:07.519><c> R7</c>

00:12:08.069 --> 00:12:08.079 align:start position:0%
going to be stored inside of our R7
 

00:12:08.079 --> 00:12:10.949 align:start position:0%
going to be stored inside of our R7
register<00:12:08.639><c> inside</c><00:12:08.880><c> of</c><00:12:09.000><c> armv7</c><00:12:09.800><c> assembly</c><00:12:10.639><c> so</c><00:12:10.839><c> all</c>

00:12:10.949 --> 00:12:10.959 align:start position:0%
register inside of armv7 assembly so all
 

00:12:10.959 --> 00:12:13.750 align:start position:0%
register inside of armv7 assembly so all
we<00:12:11.040><c> need</c><00:12:11.160><c> to</c><00:12:11.279><c> do</c><00:12:11.440><c> is</c><00:12:11.560><c> do</c><00:12:12.240><c> move</c>

00:12:13.750 --> 00:12:13.760 align:start position:0%
we need to do is do move
 

00:12:13.760 --> 00:12:16.350 align:start position:0%
we need to do is do move
R7<00:12:14.760><c> and</c><00:12:14.880><c> then</c><00:12:15.000><c> the</c><00:12:15.279><c> immediate</c>

00:12:16.350 --> 00:12:16.360 align:start position:0%
R7 and then the immediate
 

00:12:16.360 --> 00:12:19.350 align:start position:0%
R7 and then the immediate
value<00:12:17.360><c> defined</c><00:12:17.880><c> here</c>

00:12:19.350 --> 00:12:19.360 align:start position:0%
value defined here
 

00:12:19.360 --> 00:12:21.389 align:start position:0%
value defined here
192<00:12:20.360><c> and</c><00:12:20.440><c> then</c><00:12:20.600><c> this</c><00:12:20.680><c> is</c><00:12:20.800><c> going</c><00:12:20.880><c> to</c><00:12:21.040><c> let</c><00:12:21.240><c> the</c>

00:12:21.389 --> 00:12:21.399 align:start position:0%
192 and then this is going to let the
 

00:12:21.399 --> 00:12:23.310 align:start position:0%
192 and then this is going to let the
system<00:12:21.760><c> know</c><00:12:22.160><c> what</c><00:12:22.399><c> system</c><00:12:22.760><c> call</c><00:12:22.959><c> we're</c>

00:12:23.310 --> 00:12:23.320 align:start position:0%
system know what system call we're
 

00:12:23.320 --> 00:12:25.470 align:start position:0%
system know what system call we're
actually<00:12:23.639><c> trying</c><00:12:24.000><c> to</c><00:12:24.240><c> invoke</c><00:12:25.120><c> and</c><00:12:25.240><c> then</c><00:12:25.360><c> we</c>

00:12:25.470 --> 00:12:25.480 align:start position:0%
actually trying to invoke and then we
 

00:12:25.480 --> 00:12:28.710 align:start position:0%
actually trying to invoke and then we
can<00:12:25.680><c> use</c><00:12:26.120><c> our</c><00:12:26.360><c> system</c><00:12:26.760><c> call</c><00:12:27.399><c> instruction</c><00:12:28.399><c> to</c>

00:12:28.710 --> 00:12:28.720 align:start position:0%
can use our system call instruction to
 

00:12:28.720 --> 00:12:31.470 align:start position:0%
can use our system call instruction to
actually<00:12:29.320><c> invoke</c><00:12:29.800><c> that</c><00:12:29.959><c> map</c><00:12:30.560><c> sis</c><00:12:30.800><c> call</c><00:12:31.320><c> so</c>

00:12:31.470 --> 00:12:31.480 align:start position:0%
actually invoke that map sis call so
 

00:12:31.480 --> 00:12:33.310 align:start position:0%
actually invoke that map sis call so
this<00:12:31.560><c> is</c><00:12:31.680><c> going</c><00:12:31.800><c> to</c><00:12:32.040><c> pass</c><00:12:32.360><c> all</c><00:12:32.519><c> of</c><00:12:32.720><c> these</c><00:12:32.920><c> flags</c>

00:12:33.310 --> 00:12:33.320 align:start position:0%
this is going to pass all of these flags
 

00:12:33.320 --> 00:12:35.670 align:start position:0%
this is going to pass all of these flags
that<00:12:33.440><c> we</c><00:12:33.600><c> defined</c><00:12:34.040><c> up</c><00:12:34.279><c> here</c><00:12:34.560><c> already</c><00:12:35.360><c> let</c><00:12:35.519><c> the</c>

00:12:35.670 --> 00:12:35.680 align:start position:0%
that we defined up here already let the
 

00:12:35.680 --> 00:12:37.350 align:start position:0%
that we defined up here already let the
operating<00:12:36.120><c> system</c><00:12:36.399><c> know</c><00:12:36.600><c> we</c><00:12:36.720><c> want</c><00:12:36.800><c> to</c><00:12:36.959><c> call</c>

00:12:37.350 --> 00:12:37.360 align:start position:0%
operating system know we want to call
 

00:12:37.360 --> 00:12:40.750 align:start position:0%
operating system know we want to call
map<00:12:38.240><c> and</c><00:12:38.360><c> then</c><00:12:38.680><c> actually</c><00:12:39.199><c> invoke</c><00:12:39.720><c> that</c><00:12:40.360><c> so</c><00:12:40.560><c> now</c>

00:12:40.750 --> 00:12:40.760 align:start position:0%
map and then actually invoke that so now
 

00:12:40.760 --> 00:12:42.910 align:start position:0%
map and then actually invoke that so now
the<00:12:41.240><c> address</c><00:12:41.680><c> is</c><00:12:41.800><c> going</c><00:12:41.959><c> to</c><00:12:42.079><c> be</c><00:12:42.240><c> stored</c><00:12:42.680><c> inside</c>

00:12:42.910 --> 00:12:42.920 align:start position:0%
the address is going to be stored inside
 

00:12:42.920 --> 00:12:45.790 align:start position:0%
the address is going to be stored inside
of<00:12:43.040><c> our</c><00:12:43.199><c> r0</c><00:12:43.920><c> register</c><00:12:44.800><c> to</c><00:12:45.160><c> the</c><00:12:45.320><c> newly</c>

00:12:45.790 --> 00:12:45.800 align:start position:0%
of our r0 register to the newly
 

00:12:45.800 --> 00:12:47.629 align:start position:0%
of our r0 register to the newly
allocated<00:12:46.440><c> memory</c><00:12:46.880><c> that</c><00:12:47.000><c> we're</c><00:12:47.160><c> trying</c><00:12:47.440><c> to</c>

00:12:47.629 --> 00:12:47.639 align:start position:0%
allocated memory that we're trying to
 

00:12:47.639 --> 00:12:49.829 align:start position:0%
allocated memory that we're trying to
point<00:12:47.920><c> to</c><00:12:48.440><c> now</c><00:12:48.680><c> if</c><00:12:48.839><c> the</c><00:12:49.040><c> allocation</c><00:12:49.560><c> was</c>

00:12:49.829 --> 00:12:49.839 align:start position:0%
point to now if the allocation was
 

00:12:49.839 --> 00:12:51.389 align:start position:0%
point to now if the allocation was
unsuccessful<00:12:50.680><c> we're</c><00:12:50.800><c> going</c><00:12:50.920><c> to</c><00:12:51.040><c> get</c><00:12:51.160><c> the</c>

00:12:51.389 --> 00:12:51.399 align:start position:0%
unsuccessful we're going to get the
 

00:12:51.399 --> 00:12:55.269 align:start position:0%
unsuccessful we're going to get the
value<00:12:52.079><c> -1</c><00:12:52.959><c> so</c><00:12:53.240><c> why</c><00:12:53.360><c> don't</c><00:12:53.560><c> we</c><00:12:54.079><c> compare</c><00:12:55.040><c> the</c>

00:12:55.269 --> 00:12:55.279 align:start position:0%
value -1 so why don't we compare the
 

00:12:55.279 --> 00:12:56.670 align:start position:0%
value -1 so why don't we compare the
value<00:12:55.600><c> currently</c><00:12:55.959><c> in</c>

00:12:56.670 --> 00:12:56.680 align:start position:0%
value currently in
 

00:12:56.680 --> 00:12:59.430 align:start position:0%
value currently in
r0<00:12:57.680><c> this</c><00:12:57.800><c> is</c><00:12:57.959><c> going</c><00:12:58.120><c> to</c><00:12:58.279><c> be</c><00:12:58.519><c> the</c><00:12:58.800><c> memory</c>

00:12:59.430 --> 00:12:59.440 align:start position:0%
r0 this is going to be the memory
 

00:12:59.440 --> 00:13:02.030 align:start position:0%
r0 this is going to be the memory
address<00:12:59.920><c> of</c><00:13:00.120><c> the</c><00:13:00.360><c> new</c><00:13:01.079><c> location</c><00:13:01.680><c> where</c><00:13:01.800><c> we're</c>

00:13:02.030 --> 00:13:02.040 align:start position:0%
address of the new location where we're
 

00:13:02.040 --> 00:13:04.389 align:start position:0%
address of the new location where we're
allocating<00:13:02.600><c> our</c><00:13:02.760><c> memory</c><00:13:03.519><c> and</c><00:13:03.680><c> let's</c><00:13:03.920><c> see</c><00:13:04.240><c> if</c>

00:13:04.389 --> 00:13:04.399 align:start position:0%
allocating our memory and let's see if
 

00:13:04.399 --> 00:13:06.710 align:start position:0%
allocating our memory and let's see if
that<00:13:04.480><c> is</c><00:13:04.639><c> the</c><00:13:04.880><c> value</c>

00:13:06.710 --> 00:13:06.720 align:start position:0%
that is the value
 

00:13:06.720 --> 00:13:09.949 align:start position:0%
that is the value
-1<00:13:07.720><c> and</c><00:13:07.959><c> if</c><00:13:08.079><c> it</c><00:13:08.279><c> is</c><00:13:08.560><c> the</c><00:13:08.839><c> value1</c><00:13:09.760><c> we're</c><00:13:09.880><c> going</c>

00:13:09.949 --> 00:13:09.959 align:start position:0%
-1 and if it is the value1 we're going
 

00:13:09.959 --> 00:13:12.389 align:start position:0%
-1 and if it is the value1 we're going
to<00:13:10.079><c> Branch</c><00:13:10.519><c> equal</c><00:13:11.399><c> and</c><00:13:11.560><c> let's</c><00:13:11.800><c> jump</c><00:13:12.040><c> over</c><00:13:12.199><c> to</c>

00:13:12.389 --> 00:13:12.399 align:start position:0%
to Branch equal and let's jump over to
 

00:13:12.399 --> 00:13:16.990 align:start position:0%
to Branch equal and let's jump over to
our<00:13:12.639><c> label</c><00:13:13.079><c> aloc</c>

00:13:16.990 --> 00:13:17.000 align:start position:0%
 
 

00:13:17.000 --> 00:13:20.030 align:start position:0%
 
failed<00:13:18.000><c> let</c><00:13:18.120><c> me</c><00:13:18.279><c> just</c><00:13:18.480><c> add</c><00:13:18.760><c> my</c><00:13:19.360><c> hash</c><00:13:19.680><c> sign</c>

00:13:20.030 --> 00:13:20.040 align:start position:0%
failed let me just add my hash sign
 

00:13:20.040 --> 00:13:21.750 align:start position:0%
failed let me just add my hash sign
right<00:13:20.279><c> here</c><00:13:20.880><c> so</c><00:13:21.040><c> we're</c><00:13:21.240><c> comparing</c><00:13:21.639><c> the</c>

00:13:21.750 --> 00:13:21.760 align:start position:0%
right here so we're comparing the
 

00:13:21.760 --> 00:13:23.389 align:start position:0%
right here so we're comparing the
immediate

00:13:23.389 --> 00:13:23.399 align:start position:0%
immediate
 

00:13:23.399 --> 00:13:26.030 align:start position:0%
immediate
value1<00:13:24.399><c> otherwise</c><00:13:25.000><c> we</c><00:13:25.120><c> should</c><00:13:25.320><c> be</c><00:13:25.480><c> good</c><00:13:25.639><c> to</c><00:13:25.839><c> go</c>

00:13:26.030 --> 00:13:26.040 align:start position:0%
value1 otherwise we should be good to go
 

00:13:26.040 --> 00:13:28.069 align:start position:0%
value1 otherwise we should be good to go
and<00:13:26.279><c> go</c><00:13:26.440><c> ahead</c><00:13:26.680><c> and</c><00:13:26.920><c> use</c><00:13:27.480><c> this</c><00:13:27.639><c> memory</c>

00:13:28.069 --> 00:13:28.079 align:start position:0%
and go ahead and use this memory
 

00:13:28.079 --> 00:13:30.509 align:start position:0%
and go ahead and use this memory
location<00:13:28.519><c> to</c><00:13:28.720><c> store</c><00:13:29.279><c> our</c><00:13:29.480><c> Dynamic</c>

00:13:30.509 --> 00:13:30.519 align:start position:0%
location to store our Dynamic
 

00:13:30.519 --> 00:13:34.030 align:start position:0%
location to store our Dynamic
integer<00:13:31.519><c> so</c><00:13:31.720><c> why</c><00:13:31.800><c> don't</c><00:13:32.000><c> we</c><00:13:32.199><c> put</c><00:13:32.480><c> the</c><00:13:32.639><c> value</c><00:13:33.079><c> 42</c>

00:13:34.030 --> 00:13:34.040 align:start position:0%
integer so why don't we put the value 42
 

00:13:34.040 --> 00:13:35.870 align:start position:0%
integer so why don't we put the value 42
inside<00:13:34.399><c> of</c><00:13:34.600><c> this</c><00:13:34.720><c> memory</c><00:13:35.160><c> location</c><00:13:35.639><c> that</c><00:13:35.760><c> we</c>

00:13:35.870 --> 00:13:35.880 align:start position:0%
inside of this memory location that we
 

00:13:35.880 --> 00:13:38.150 align:start position:0%
inside of this memory location that we
have<00:13:36.079><c> dynamically</c><00:13:36.839><c> allocated</c><00:13:37.839><c> so</c><00:13:38.000><c> I'm</c><00:13:38.079><c> going</c>

00:13:38.150 --> 00:13:38.160 align:start position:0%
have dynamically allocated so I'm going
 

00:13:38.160 --> 00:13:40.230 align:start position:0%
have dynamically allocated so I'm going
to<00:13:38.279><c> pick</c><00:13:38.440><c> on</c><00:13:38.560><c> our</c><00:13:38.720><c> R1</c><00:13:39.320><c> register</c><00:13:39.880><c> since</c><00:13:40.079><c> we're</c>

00:13:40.230 --> 00:13:40.240 align:start position:0%
to pick on our R1 register since we're
 

00:13:40.240 --> 00:13:42.829 align:start position:0%
to pick on our R1 register since we're
going<00:13:40.399><c> to</c><00:13:40.600><c> use</c><00:13:40.920><c> this</c><00:13:41.199><c> to</c><00:13:41.519><c> store</c><00:13:42.079><c> the</c><00:13:42.279><c> value</c>

00:13:42.829 --> 00:13:42.839 align:start position:0%
going to use this to store the value
 

00:13:42.839 --> 00:13:45.350 align:start position:0%
going to use this to store the value
inside<00:13:43.240><c> of</c><00:13:43.399><c> that</c><00:13:43.519><c> memory</c><00:13:43.920><c> location</c><00:13:44.880><c> so</c><00:13:45.160><c> let's</c>

00:13:45.350 --> 00:13:45.360 align:start position:0%
inside of that memory location so let's
 

00:13:45.360 --> 00:13:48.590 align:start position:0%
inside of that memory location so let's
move<00:13:45.680><c> the</c><00:13:45.839><c> immediate</c><00:13:46.320><c> value</c><00:13:46.800><c> 42</c><00:13:47.720><c> temporarily</c>

00:13:48.590 --> 00:13:48.600 align:start position:0%
move the immediate value 42 temporarily
 

00:13:48.600 --> 00:13:51.389 align:start position:0%
move the immediate value 42 temporarily
into<00:13:48.959><c> our</c><00:13:49.079><c> R1</c><00:13:49.639><c> register</c><00:13:50.639><c> so</c><00:13:50.839><c> now</c><00:13:51.000><c> that</c><00:13:51.160><c> we've</c>

00:13:51.389 --> 00:13:51.399 align:start position:0%
into our R1 register so now that we've
 

00:13:51.399 --> 00:13:54.430 align:start position:0%
into our R1 register so now that we've
done<00:13:51.680><c> that</c><00:13:51.839><c> we're</c><00:13:52.040><c> able</c><00:13:52.320><c> to</c><00:13:52.639><c> store</c><00:13:53.639><c> that</c><00:13:53.920><c> value</c>

00:13:54.430 --> 00:13:54.440 align:start position:0%
done that we're able to store that value
 

00:13:54.440 --> 00:13:56.590 align:start position:0%
done that we're able to store that value
into<00:13:54.800><c> the</c><00:13:54.959><c> memory</c><00:13:55.440><c> location</c><00:13:56.079><c> that</c><00:13:56.240><c> we</c><00:13:56.399><c> have</c>

00:13:56.590 --> 00:13:56.600 align:start position:0%
into the memory location that we have
 

00:13:56.600 --> 00:13:59.310 align:start position:0%
into the memory location that we have
dynamically<00:13:57.320><c> allocated</c><00:13:58.320><c> so</c><00:13:58.519><c> let's</c><00:13:58.680><c> use</c><00:13:59.120><c> our</c>

00:13:59.310 --> 00:13:59.320 align:start position:0%
dynamically allocated so let's use our
 

00:13:59.320 --> 00:14:01.509 align:start position:0%
dynamically allocated so let's use our
store<00:13:59.880><c> register</c><00:14:00.519><c> instruction</c><00:14:01.279><c> and</c><00:14:01.399><c> we're</c>

00:14:01.509 --> 00:14:01.519 align:start position:0%
store register instruction and we're
 

00:14:01.519 --> 00:14:04.470 align:start position:0%
store register instruction and we're
going<00:14:01.600><c> to</c><00:14:01.720><c> store</c><00:14:02.120><c> that</c><00:14:02.279><c> R1</c><00:14:03.000><c> value</c><00:14:04.000><c> into</c><00:14:04.279><c> the</c>

00:14:04.470 --> 00:14:04.480 align:start position:0%
going to store that R1 value into the
 

00:14:04.480 --> 00:14:07.189 align:start position:0%
going to store that R1 value into the
memory<00:14:05.040><c> address</c><00:14:05.600><c> that</c><00:14:05.720><c> is</c><00:14:05.880><c> pointed</c><00:14:06.240><c> to</c><00:14:06.839><c> by</c><00:14:07.079><c> the</c>

00:14:07.189 --> 00:14:07.199 align:start position:0%
memory address that is pointed to by the
 

00:14:07.199 --> 00:14:10.030 align:start position:0%
memory address that is pointed to by the
r0o<00:14:07.920><c> register</c><00:14:08.839><c> that</c><00:14:08.959><c> was</c><00:14:09.240><c> returned</c><00:14:09.600><c> to</c><00:14:09.800><c> us</c>

00:14:10.030 --> 00:14:10.040 align:start position:0%
r0o register that was returned to us
 

00:14:10.040 --> 00:14:12.310 align:start position:0%
r0o register that was returned to us
when<00:14:10.199><c> we</c><00:14:10.320><c> invoked</c><00:14:10.759><c> the</c><00:14:10.920><c> M</c><00:14:11.240><c> map</c><00:14:11.519><c> sis</c><00:14:11.800><c> call</c><00:14:12.120><c> up</c>

00:14:12.310 --> 00:14:12.320 align:start position:0%
when we invoked the M map sis call up
 

00:14:12.320 --> 00:14:14.150 align:start position:0%
when we invoked the M map sis call up
here<00:14:13.279><c> now</c><00:14:13.440><c> that</c><00:14:13.560><c> we've</c><00:14:13.759><c> done</c><00:14:13.959><c> that</c>

00:14:14.150 --> 00:14:14.160 align:start position:0%
here now that we've done that
 

00:14:14.160 --> 00:14:15.670 align:start position:0%
here now that we've done that
successfully<00:14:14.800><c> and</c><00:14:14.920><c> made</c><00:14:15.120><c> sure</c><00:14:15.360><c> we've</c>

00:14:15.670 --> 00:14:15.680 align:start position:0%
successfully and made sure we've
 

00:14:15.680 --> 00:14:17.829 align:start position:0%
successfully and made sure we've
properly<00:14:16.160><c> allocated</c><00:14:16.680><c> our</c><00:14:16.839><c> memory</c><00:14:17.519><c> we</c><00:14:17.639><c> can</c>

00:14:17.829 --> 00:14:17.839 align:start position:0%
properly allocated our memory we can
 

00:14:17.839 --> 00:14:21.670 align:start position:0%
properly allocated our memory we can
jump<00:14:18.120><c> over</c><00:14:18.480><c> and</c><00:14:18.720><c> Branch</c><00:14:19.360><c> to</c><00:14:19.560><c> the</c><00:14:19.720><c> Alec</c>

00:14:21.670 --> 00:14:21.680 align:start position:0%
jump over and Branch to the Alec
 

00:14:21.680 --> 00:14:24.269 align:start position:0%
jump over and Branch to the Alec
exit<00:14:22.680><c> so</c><00:14:22.839><c> this</c><00:14:22.959><c> is</c><00:14:23.160><c> going</c><00:14:23.320><c> to</c><00:14:23.600><c> skip</c><00:14:23.880><c> over</c><00:14:24.120><c> the</c>

00:14:24.269 --> 00:14:24.279 align:start position:0%
exit so this is going to skip over the
 

00:14:24.279 --> 00:14:26.710 align:start position:0%
exit so this is going to skip over the
Alec<00:14:24.680><c> failed</c><00:14:25.199><c> label</c><00:14:25.800><c> and</c><00:14:25.959><c> jump</c><00:14:26.279><c> right</c><00:14:26.440><c> over</c>

00:14:26.710 --> 00:14:26.720 align:start position:0%
Alec failed label and jump right over
 

00:14:26.720 --> 00:14:28.829 align:start position:0%
Alec failed label and jump right over
and<00:14:26.959><c> pop</c><00:14:27.160><c> us</c><00:14:27.320><c> out</c><00:14:27.480><c> of</c><00:14:27.720><c> this</c><00:14:27.880><c> current</c><00:14:28.279><c> function</c>

00:14:28.829 --> 00:14:28.839 align:start position:0%
and pop us out of this current function
 

00:14:28.839 --> 00:14:30.590 align:start position:0%
and pop us out of this current function
now<00:14:29.120><c> inside</c><00:14:29.360><c> of</c><00:14:29.519><c> assembly</c><00:14:29.920><c> we</c><00:14:30.040><c> are</c><00:14:30.240><c> also</c>

00:14:30.590 --> 00:14:30.600 align:start position:0%
now inside of assembly we are also
 

00:14:30.600 --> 00:14:32.550 align:start position:0%
now inside of assembly we are also
responsible<00:14:31.120><c> for</c><00:14:31.360><c> deallocating</c><00:14:31.959><c> the</c><00:14:32.240><c> memory</c>

00:14:32.550 --> 00:14:32.560 align:start position:0%
responsible for deallocating the memory
 

00:14:32.560 --> 00:14:34.269 align:start position:0%
responsible for deallocating the memory
that<00:14:32.680><c> we're</c><00:14:32.880><c> looking</c><00:14:33.160><c> at</c><00:14:33.680><c> so</c><00:14:33.839><c> if</c><00:14:33.920><c> you</c><00:14:34.040><c> look</c>

00:14:34.269 --> 00:14:34.279 align:start position:0%
that we're looking at so if you look
 

00:14:34.279 --> 00:14:36.430 align:start position:0%
that we're looking at so if you look
down<00:14:34.519><c> here</c><00:14:34.759><c> I</c><00:14:35.040><c> already</c><00:14:35.399><c> added</c><00:14:35.839><c> the</c><00:14:36.040><c> system</c>

00:14:36.430 --> 00:14:36.440 align:start position:0%
down here I already added the system
 

00:14:36.440 --> 00:14:39.030 align:start position:0%
down here I already added the system
call<00:14:36.720><c> to</c><00:14:37.079><c> deallocate</c><00:14:37.959><c> the</c><00:14:38.120><c> memory</c><00:14:38.639><c> so</c><00:14:38.839><c> down</c>

00:14:39.030 --> 00:14:39.040 align:start position:0%
call to deallocate the memory so down
 

00:14:39.040 --> 00:14:41.509 align:start position:0%
call to deallocate the memory so down
here<00:14:39.199><c> we're</c><00:14:39.440><c> calling</c><00:14:39.720><c> the</c><00:14:39.880><c> M</c><00:14:40.199><c> unmap</c><00:14:40.759><c> CIS</c><00:14:41.160><c> call</c>

00:14:41.509 --> 00:14:41.519 align:start position:0%
here we're calling the M unmap CIS call
 

00:14:41.519 --> 00:14:43.590 align:start position:0%
here we're calling the M unmap CIS call
which<00:14:41.639><c> is</c><00:14:41.800><c> the</c><00:14:41.959><c> immediate</c><00:14:42.399><c> value</c><00:14:42.680><c> 215</c><00:14:43.480><c> which</c>

00:14:43.590 --> 00:14:43.600 align:start position:0%
which is the immediate value 215 which
 

00:14:43.600 --> 00:14:45.150 align:start position:0%
which is the immediate value 215 which
is<00:14:43.720><c> going</c><00:14:43.800><c> to</c><00:14:43.920><c> let</c><00:14:44.079><c> the</c><00:14:44.240><c> operating</c><00:14:44.720><c> system</c>

00:14:45.150 --> 00:14:45.160 align:start position:0%
is going to let the operating system
 

00:14:45.160 --> 00:14:46.829 align:start position:0%
is going to let the operating system
know<00:14:45.519><c> that</c><00:14:45.759><c> this</c><00:14:45.880><c> is</c><00:14:46.040><c> the</c><00:14:46.199><c> system</c><00:14:46.519><c> call</c><00:14:46.759><c> that</c>

00:14:46.829 --> 00:14:46.839 align:start position:0%
know that this is the system call that
 

00:14:46.839 --> 00:14:49.710 align:start position:0%
know that this is the system call that
we're<00:14:46.959><c> trying</c><00:14:47.199><c> to</c><00:14:47.360><c> make</c><00:14:48.120><c> and</c><00:14:48.240><c> then</c><00:14:48.399><c> we</c><00:14:48.680><c> pass</c><00:14:49.040><c> in</c>

00:14:49.710 --> 00:14:49.720 align:start position:0%
we're trying to make and then we pass in
 

00:14:49.720 --> 00:14:51.670 align:start position:0%
we're trying to make and then we pass in
the<00:14:49.959><c> value</c><00:14:50.440><c> that</c><00:14:50.560><c> is</c><00:14:50.839><c> that</c><00:14:50.920><c> was</c><00:14:51.199><c> returned</c><00:14:51.480><c> to</c>

00:14:51.670 --> 00:14:51.680 align:start position:0%
the value that is that was returned to
 

00:14:51.680 --> 00:14:53.590 align:start position:0%
the value that is that was returned to
us<00:14:51.880><c> in</c><00:14:52.040><c> the</c><00:14:52.240><c> previous</c><00:14:52.680><c> function</c><00:14:53.360><c> which</c><00:14:53.480><c> is</c>

00:14:53.590 --> 00:14:53.600 align:start position:0%
us in the previous function which is
 

00:14:53.600 --> 00:14:55.269 align:start position:0%
us in the previous function which is
going<00:14:53.680><c> to</c><00:14:53.800><c> be</c><00:14:54.079><c> inside</c><00:14:54.360><c> of</c><00:14:54.480><c> our</c><00:14:54.639><c> R</c><00:14:54.920><c> zero</c>

00:14:55.269 --> 00:14:55.279 align:start position:0%
going to be inside of our R zero
 

00:14:55.279 --> 00:14:57.389 align:start position:0%
going to be inside of our R zero
register<00:14:56.040><c> so</c><00:14:56.240><c> that</c><00:14:56.320><c> is</c><00:14:56.440><c> the</c><00:14:56.600><c> current</c><00:14:56.959><c> memory</c>

00:14:57.389 --> 00:14:57.399 align:start position:0%
register so that is the current memory
 

00:14:57.399 --> 00:14:59.069 align:start position:0%
register so that is the current memory
address<00:14:57.839><c> that</c><00:14:57.959><c> we</c><00:14:58.279><c> dynamically</c><00:14:58.839><c> add</c>

00:14:59.069 --> 00:14:59.079 align:start position:0%
address that we dynamically add
 

00:14:59.079 --> 00:15:01.230 align:start position:0%
address that we dynamically add
allocated<00:14:59.639><c> that</c><00:14:59.800><c> memory</c><00:15:00.199><c> inside</c><00:15:00.560><c> of</c><00:15:00.920><c> now</c><00:15:01.079><c> we</c>

00:15:01.230 --> 00:15:01.240 align:start position:0%
allocated that memory inside of now we
 

00:15:01.240 --> 00:15:03.710 align:start position:0%
allocated that memory inside of now we
have<00:15:01.519><c> successfully</c><00:15:02.519><c> called</c><00:15:02.839><c> the</c><00:15:02.920><c> mmap</c><00:15:03.399><c> CIS</c>

00:15:03.710 --> 00:15:03.720 align:start position:0%
have successfully called the mmap CIS
 

00:15:03.720 --> 00:15:05.670 align:start position:0%
have successfully called the mmap CIS
call<00:15:03.959><c> to</c><00:15:04.160><c> allocate</c><00:15:04.600><c> additional</c><00:15:05.040><c> memory</c><00:15:05.440><c> for</c>

00:15:05.670 --> 00:15:05.680 align:start position:0%
call to allocate additional memory for
 

00:15:05.680 --> 00:15:08.150 align:start position:0%
call to allocate additional memory for
us<00:15:06.279><c> made</c><00:15:06.519><c> sure</c><00:15:06.880><c> that</c><00:15:07.079><c> we</c><00:15:07.279><c> had</c><00:15:07.480><c> a</c><00:15:07.639><c> legitimate</c>

00:15:08.150 --> 00:15:08.160 align:start position:0%
us made sure that we had a legitimate
 

00:15:08.160 --> 00:15:10.949 align:start position:0%
us made sure that we had a legitimate
pointer<00:15:08.759><c> and</c><00:15:08.959><c> the</c><00:15:09.120><c> allocation</c><00:15:09.680><c> did</c><00:15:09.839><c> not</c><00:15:10.040><c> fail</c>

00:15:10.949 --> 00:15:10.959 align:start position:0%
pointer and the allocation did not fail
 

00:15:10.959 --> 00:15:13.590 align:start position:0%
pointer and the allocation did not fail
we<00:15:11.160><c> set</c><00:15:11.639><c> that</c><00:15:11.880><c> value</c><00:15:12.279><c> to</c><00:15:12.519><c> the</c><00:15:12.680><c> immediate</c><00:15:13.120><c> value</c>

00:15:13.590 --> 00:15:13.600 align:start position:0%
we set that value to the immediate value
 

00:15:13.600 --> 00:15:16.590 align:start position:0%
we set that value to the immediate value
41<00:15:14.600><c> then</c><00:15:14.759><c> we</c><00:15:14.880><c> go</c><00:15:15.040><c> ahead</c><00:15:15.240><c> and</c><00:15:15.399><c> call</c><00:15:15.639><c> printf</c><00:15:16.240><c> to</c>

00:15:16.590 --> 00:15:16.600 align:start position:0%
41 then we go ahead and call printf to
 

00:15:16.600 --> 00:15:19.389 align:start position:0%
41 then we go ahead and call printf to
print<00:15:17.000><c> that</c><00:15:17.240><c> value</c><00:15:17.600><c> to</c><00:15:17.839><c> the</c><00:15:18.040><c> screen</c><00:15:19.040><c> and</c><00:15:19.240><c> we</c>

00:15:19.389 --> 00:15:19.399 align:start position:0%
print that value to the screen and we
 

00:15:19.399 --> 00:15:21.150 align:start position:0%
print that value to the screen and we
make<00:15:19.560><c> sure</c><00:15:19.839><c> that</c><00:15:19.959><c> we</c><00:15:20.079><c> cover</c><00:15:20.360><c> our</c><00:15:20.560><c> tracks</c><00:15:20.959><c> and</c>

00:15:21.150 --> 00:15:21.160 align:start position:0%
make sure that we cover our tracks and
 

00:15:21.160 --> 00:15:23.870 align:start position:0%
make sure that we cover our tracks and
deallocate<00:15:21.959><c> that</c><00:15:22.120><c> memory</c><00:15:22.759><c> by</c><00:15:23.000><c> invoking</c><00:15:23.399><c> the</c><00:15:23.519><c> M</c>

00:15:23.870 --> 00:15:23.880 align:start position:0%
deallocate that memory by invoking the M
 

00:15:23.880 --> 00:15:26.710 align:start position:0%
deallocate that memory by invoking the M
unmap<00:15:24.480><c> CIS</c><00:15:24.800><c> call</c><00:15:25.440><c> once</c><00:15:25.639><c> we</c><00:15:25.759><c> are</c><00:15:26.000><c> finished</c><00:15:26.560><c> with</c>

00:15:26.710 --> 00:15:26.720 align:start position:0%
unmap CIS call once we are finished with
 

00:15:26.720 --> 00:15:29.389 align:start position:0%
unmap CIS call once we are finished with
that<00:15:27.000><c> value</c><00:15:28.000><c> so</c><00:15:28.160><c> let's</c><00:15:28.360><c> go</c><00:15:28.480><c> ahead</c><00:15:28.759><c> and</c><00:15:29.000><c> and</c><00:15:29.199><c> run</c>

00:15:29.389 --> 00:15:29.399 align:start position:0%
that value so let's go ahead and and run
 

00:15:29.399 --> 00:15:30.829 align:start position:0%
that value so let's go ahead and and run
that

00:15:30.829 --> 00:15:30.839 align:start position:0%
that
 

00:15:30.839 --> 00:15:33.910 align:start position:0%
that
application<00:15:31.839><c> and</c><00:15:32.040><c> see</c><00:15:32.240><c> what</c><00:15:32.720><c> happens</c><00:15:33.720><c> so</c>

00:15:33.910 --> 00:15:33.920 align:start position:0%
application and see what happens so
 

00:15:33.920 --> 00:15:40.749 align:start position:0%
application and see what happens so
let's<00:15:34.079><c> do</c><00:15:34.279><c> arm</c><00:15:35.560><c> Linux</c><00:15:36.560><c> g</c><00:15:37.000><c> e</c><00:15:38.319><c> ABI</c><00:15:39.759><c> assemble</c>

00:15:40.749 --> 00:15:40.759 align:start position:0%
let's do arm Linux g e ABI assemble
 

00:15:40.759 --> 00:15:42.829 align:start position:0%
let's do arm Linux g e ABI assemble
we're<00:15:40.880><c> going</c><00:15:40.959><c> to</c><00:15:41.079><c> take</c><00:15:41.199><c> our</c><00:15:41.360><c> allocate</c><00:15:41.920><c> dos</c><00:15:42.680><c> and</c>

00:15:42.829 --> 00:15:42.839 align:start position:0%
we're going to take our allocate dos and
 

00:15:42.839 --> 00:15:46.030 align:start position:0%
we're going to take our allocate dos and
generate<00:15:43.160><c> our</c><00:15:43.440><c> object</c>

00:15:46.030 --> 00:15:46.040 align:start position:0%
 
 

00:15:46.040 --> 00:15:49.430 align:start position:0%
 
binary<00:15:47.040><c> looks</c><00:15:47.360><c> good</c><00:15:47.639><c> no</c><00:15:48.040><c> mistakes</c><00:15:48.480><c> in</c><00:15:48.720><c> here</c>

00:15:49.430 --> 00:15:49.440 align:start position:0%
binary looks good no mistakes in here
 

00:15:49.440 --> 00:15:51.710 align:start position:0%
binary looks good no mistakes in here
and<00:15:49.600><c> then</c><00:15:49.839><c> let's</c><00:15:50.079><c> create</c><00:15:50.360><c> our</c><00:15:50.639><c> executable</c><00:15:51.440><c> do</c>

00:15:51.710 --> 00:15:51.720 align:start position:0%
and then let's create our executable do
 

00:15:51.720 --> 00:15:55.749 align:start position:0%
and then let's create our executable do
arm<00:15:53.199><c> Lin</c><00:15:54.199><c> G</c>

00:15:55.749 --> 00:15:55.759 align:start position:0%
arm Lin G
 

00:15:55.759 --> 00:15:58.309 align:start position:0%
arm Lin G
eabi<00:15:56.759><c> GCC</c><00:15:57.480><c> and</c><00:15:57.600><c> I'm</c><00:15:57.680><c> going</c><00:15:57.759><c> to</c><00:15:57.920><c> statically</c>

00:15:58.309 --> 00:15:58.319 align:start position:0%
eabi GCC and I'm going to statically
 

00:15:58.319 --> 00:16:00.350 align:start position:0%
eabi GCC and I'm going to statically
link<00:15:58.560><c> that</c><00:15:58.680><c> so</c><00:15:59.000><c> we</c><00:15:59.079><c> can</c><00:15:59.240><c> get</c><00:15:59.399><c> our</c><00:15:59.639><c> print</c><00:15:59.959><c> F</c>

00:16:00.350 --> 00:16:00.360 align:start position:0%
link that so we can get our print F
 

00:16:00.360 --> 00:16:03.990 align:start position:0%
link that so we can get our print F
value<00:16:00.759><c> which</c><00:16:00.880><c> is</c><00:16:01.040><c> inside</c><00:16:01.360><c> of</c><00:16:01.480><c> our</c><00:16:01.639><c> C</c><00:16:01.959><c> standard</c>

00:16:03.990 --> 00:16:04.000 align:start position:0%
value which is inside of our C standard
 

00:16:04.000 --> 00:16:07.509 align:start position:0%
value which is inside of our C standard
library<00:16:05.000><c> and</c><00:16:05.160><c> we'll</c><00:16:05.360><c> take</c><00:16:05.560><c> our</c><00:16:06.079><c> allocate</c><00:16:07.079><c> o</c>

00:16:07.509 --> 00:16:07.519 align:start position:0%
library and we'll take our allocate o
 

00:16:07.519 --> 00:16:11.030 align:start position:0%
library and we'll take our allocate o
object<00:16:08.399><c> binary</c><00:16:09.399><c> and</c><00:16:09.600><c> generate</c><00:16:10.000><c> our</c>

00:16:11.030 --> 00:16:11.040 align:start position:0%
object binary and generate our
 

00:16:11.040 --> 00:16:13.870 align:start position:0%
object binary and generate our
executable<00:16:12.040><c> so</c><00:16:12.199><c> now</c><00:16:12.399><c> all</c><00:16:12.560><c> we</c><00:16:12.680><c> have</c><00:16:12.800><c> to</c><00:16:12.959><c> do</c><00:16:13.680><c> is</c>

00:16:13.870 --> 00:16:13.880 align:start position:0%
executable so now all we have to do is
 

00:16:13.880 --> 00:16:15.829 align:start position:0%
executable so now all we have to do is
run<00:16:14.160><c> our</c><00:16:14.360><c> allocate</c><00:16:14.839><c> and</c><00:16:15.079><c> make</c><00:16:15.240><c> sure</c><00:16:15.480><c> that</c><00:16:15.639><c> we</c>

00:16:15.829 --> 00:16:15.839 align:start position:0%
run our allocate and make sure that we
 

00:16:15.839 --> 00:16:18.230 align:start position:0%
run our allocate and make sure that we
printed<00:16:16.240><c> this</c>

00:16:18.230 --> 00:16:18.240 align:start position:0%
printed this
 

00:16:18.240 --> 00:16:20.350 align:start position:0%
printed this
successfully<00:16:19.240><c> and</c><00:16:19.399><c> there</c><00:16:19.519><c> we</c><00:16:19.680><c> go</c><00:16:19.920><c> Dynamic</c>

00:16:20.350 --> 00:16:20.360 align:start position:0%
successfully and there we go Dynamic
 

00:16:20.360 --> 00:16:23.150 align:start position:0%
successfully and there we go Dynamic
number<00:16:20.639><c> is</c><00:16:20.759><c> 42</c><00:16:21.759><c> so</c><00:16:22.000><c> now</c><00:16:22.199><c> we</c><00:16:22.319><c> have</c><00:16:22.480><c> successfully</c>

00:16:23.150 --> 00:16:23.160 align:start position:0%
number is 42 so now we have successfully
 

00:16:23.160 --> 00:16:25.790 align:start position:0%
number is 42 so now we have successfully
completed<00:16:23.600><c> our</c><00:16:23.839><c> allocation</c><00:16:24.480><c> in</c><00:16:24.639><c> raw</c><00:16:25.000><c> armv7</c>

00:16:25.790 --> 00:16:25.800 align:start position:0%
completed our allocation in raw armv7
 

00:16:25.800 --> 00:16:28.110 align:start position:0%
completed our allocation in raw armv7
assembly<00:16:26.560><c> where</c><00:16:26.720><c> we</c><00:16:26.959><c> allocated</c><00:16:27.639><c> additional</c>

00:16:28.110 --> 00:16:28.120 align:start position:0%
assembly where we allocated additional
 

00:16:28.120 --> 00:16:30.790 align:start position:0%
assembly where we allocated additional
memory<00:16:28.519><c> using</c><00:16:28.959><c> the</c><00:16:29.079><c> M</c><00:16:29.360><c> map</c><00:16:29.680><c> system</c><00:16:30.040><c> call</c><00:16:30.639><c> we</c>

00:16:30.790 --> 00:16:30.800 align:start position:0%
memory using the M map system call we
 

00:16:30.800 --> 00:16:33.670 align:start position:0%
memory using the M map system call we
set<00:16:31.120><c> that</c><00:16:31.319><c> value</c><00:16:31.600><c> to</c><00:16:31.800><c> the</c><00:16:31.920><c> immediate</c><00:16:32.399><c> value</c><00:16:32.720><c> 42</c>

00:16:33.670 --> 00:16:33.680 align:start position:0%
set that value to the immediate value 42
 

00:16:33.680 --> 00:16:35.269 align:start position:0%
set that value to the immediate value 42
and<00:16:33.800><c> then</c><00:16:33.959><c> once</c><00:16:34.160><c> we</c><00:16:34.279><c> were</c><00:16:34.480><c> finished</c><00:16:34.920><c> with</c><00:16:35.079><c> that</c>

00:16:35.269 --> 00:16:35.279 align:start position:0%
and then once we were finished with that
 

00:16:35.279 --> 00:16:38.069 align:start position:0%
and then once we were finished with that
value<00:16:35.839><c> we</c><00:16:35.959><c> called</c><00:16:36.240><c> the</c><00:16:36.399><c> M</c><00:16:37.000><c> map</c><00:16:37.279><c> system</c><00:16:37.600><c> call</c><00:16:37.920><c> so</c>

00:16:38.069 --> 00:16:38.079 align:start position:0%
value we called the M map system call so
 

00:16:38.079 --> 00:16:39.550 align:start position:0%
value we called the M map system call so
that<00:16:38.199><c> we</c><00:16:38.279><c> could</c><00:16:38.440><c> free</c><00:16:38.759><c> that</c><00:16:39.000><c> back</c><00:16:39.160><c> to</c><00:16:39.399><c> the</c>

00:16:39.550 --> 00:16:39.560 align:start position:0%
that we could free that back to the
 

00:16:39.560 --> 00:16:41.350 align:start position:0%
that we could free that back to the
operating<00:16:40.079><c> system</c><00:16:40.639><c> so</c><00:16:40.759><c> thanks</c><00:16:40.959><c> so</c><00:16:41.079><c> much</c><00:16:41.199><c> for</c>

00:16:41.350 --> 00:16:41.360 align:start position:0%
operating system so thanks so much for
 

00:16:41.360 --> 00:16:42.829 align:start position:0%
operating system so thanks so much for
watching<00:16:41.560><c> Lori</c><00:16:41.880><c> wired</c><00:16:42.240><c> everyone</c><00:16:42.519><c> and</c><00:16:42.639><c> I'll</c>

00:16:42.829 --> 00:16:42.839 align:start position:0%
watching Lori wired everyone and I'll
 

00:16:42.839 --> 00:16:46.200 align:start position:0%
watching Lori wired everyone and I'll
catch<00:16:43.000><c> you</c><00:16:43.079><c> in</c><00:16:43.160><c> the</c><00:16:43.319><c> next</c>

00:16:46.200 --> 00:16:46.210 align:start position:0%
 
 

00:16:46.210 --> 00:16:49.470 align:start position:0%
 
[Music]

00:16:49.470 --> 00:16:49.480 align:start position:0%
[Music]
 

00:16:49.480 --> 00:16:52.749 align:start position:0%
[Music]
video<00:16:50.480><c> I</c><00:16:50.600><c> have</c><00:16:50.759><c> no</c><00:16:50.880><c> boost</c><00:16:51.399><c> left</c><00:16:52.399><c> I'm</c><00:16:52.519><c> not</c><00:16:52.639><c> going</c>

00:16:52.749 --> 00:16:52.759 align:start position:0%
video I have no boost left I'm not going
 

00:16:52.759 --> 00:16:55.030 align:start position:0%
video I have no boost left I'm not going
to<00:16:52.880><c> hit</c><00:16:53.079><c> this</c>

00:16:55.030 --> 00:16:55.040 align:start position:0%
to hit this
 

00:16:55.040 --> 00:16:59.069 align:start position:0%
to hit this
car<00:16:56.040><c> oh</c><00:16:56.160><c> my</c><00:16:56.399><c> gosh</c><00:16:56.680><c> truck</c><00:16:57.199><c> out</c><00:16:57.319><c> of</c><00:16:57.440><c> the</c><00:16:57.600><c> way</c><00:16:58.959><c> we</c>

00:16:59.069 --> 00:16:59.079 align:start position:0%
car oh my gosh truck out of the way we
 

00:16:59.079 --> 00:17:02.399 align:start position:0%
car oh my gosh truck out of the way we
have<00:16:59.399><c> Boost</c>

