Week 1 is up.

425 views
Skip to first unread message

Arrvindh Shriraman

unread,
Sep 6, 2020, 1:38:27 PM9/6/20
to cmpt-295-sfu
Please reply to this discussion with any specific questions or material you would like to see covered on Sep 11. 

Tristian Labanowich

unread,
Sep 6, 2020, 4:47:56 PM9/6/20
to cmpt-295-sfu
Hi there, I quick overview of the differences between C and c++ would really be appreciated, I'm a transfer student and was never taught C

KSLARRY

unread,
Sep 6, 2020, 4:54:14 PM9/6/20
to cmpt-295-sfu
Hi there, this is the first time I use the VM. I install the VirtualBox already but I dont know how to link to csil. Is there any instruction I can follow and learn?

Arrvindh Shriraman

unread,
Sep 6, 2020, 11:06:21 PM9/6/20
to cmpt-295-sfu
This is really an open-ended question. But I think what you are really asking is "I learnt C++, can i do well in this course".
I would think the answer is yes. Week 1 and Week 2 videos/slides go over the main differences. 

https://www.cs.sfu.ca/~ashriram/Courses/CS295/assets/lectures/Part1/L03-Memory-II.pdf (goes over pointers in C. Note that C++ also has them. Not sure if you were taught them). This will be covered on Friday Sep 11. Make sure you watch the other videos in Week 1 before the class.

Week 2 : L3 is all about memory allocation in C. 
-------------------------------------

WARNING: Async delivered classes assume you have watched the other videos before the Lab and Friday classes.
Message has been deleted

Artun

unread,
Sep 7, 2020, 4:17:53 AM9/7/20
to cmpt-295-sfu
Hi Arrvindh,

Will you be posting a video on the L03-Memory-II pdf or will it be covered in the live Friday lecture? Week 1 videos only go up to Memory I.

And for this Wednesday's lab, are we expected to watch the Lab 0 & 1 videos, or just Lab 0?
Message has been deleted

Carter Kelly

unread,
Sep 7, 2020, 12:34:13 PM9/7/20
to cmpt-295-sfu
Hi Arrvindh,

I'm hoping you can make it clear: Are we doing both Lab 0 and Lab 1 this week (Wed, Sept 9) or just Lab 0? And we are expected to watch the Week 1 Lectures before Wed, Sept 9, correct?

Thanks.

On Monday, September 7, 2020 at 2:00:10 AM UTC-7 paet...@gmail.com wrote:
Hello all,

I see on the course website that the virtual machine comes preloaded with the customized compilers and software we need. However, I have Ubuntu installed onto my personal computer so that I don't have to use a slow virtual machine/CSIL. Is there any way we can have access to these customized compilers and list of software needed to install them ourselves onto our Ubuntu machines?

Cheers,

Paeton

Arrvindh Shriraman

unread,
Sep 7, 2020, 12:55:06 PM9/7/20
to cmpt-295-sfu
Yes and Yes.


On Monday, September 7, 2020 at 9:34:13 AM UTC-7, Carter Kelly wrote:
Hi Arrvindh,

I'm hoping you can make it clear: Are we doing both Lab 0 and Lab 1 this week (Wed, Sept 9)
Yes.
 
And we are expected to watch the Week 1 Lectures before Wed, Sept 9, correct?

Yes. 

Umair Ali Sadaqat

unread,
Sep 9, 2020, 1:27:45 PM9/9/20
to cmpt-295-sfu
Hey, there wont be any live lectures, right?

Arrvindh Shriraman

unread,
Sep 9, 2020, 1:34:31 PM9/9/20
to cmpt-295-sfu
Please read the email I sent out and go through the website.

223380...@gmail.com

unread,
Sep 11, 2020, 12:27:07 AM9/11/20
to cmpt-295-sfu
after watching the video I have a few questions.

about the word-oriented system 
Is each data store in each word? like if we have a 64-bit system then to store a number like 1, the computer will use all the 8 bytes to store a single 1? 

If so, in programming, what is the point of having something like int,  long or long long in C? 

if not, what is the purpose of having word-oriented memory system?

also what makes a system become 32 or 64 bit?

the other question related to code in video.

in the video, long int *  converted to char* but they are different types.
the purpose of converting to char* is when +1 to the pointer you can move 1 byte down? 
because it is a pointer, the type does not matter?  and event a struct point can convert to int* because the pointer just points to the first byte of data?
Reply all
Reply to author
Forward
0 new messages