Samsung Interview Question for Software Engineer / Developers


Team: networking
Country: India
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
0
of 0 vote

Your compiler needs to match the code alignment (RAM word size) of the instructions it is processing with the OS / CPU's specific RAM implementation on the hardware the compiler is targeting.

- ablarg September 14, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Memory alignment is not really compiler specific, but it is rather architecture specific, but having said that your compiler is arch. specific. Architecture suggests compiler writer about how memory usage can be optimized, so compiler writer kinda follows it. On intel processors, for 32 bit processors this alignment is 16bytes. This way architecture tells: I am comfortable moving 16bytes chunk from one place to other.

this can be tested very easily. Simply convert following code into assembly language.

int main()
    {
        int a = 10;
        int b = a+5;

        return 0;
    }

- Adorn November 16, 2014 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More