Git Product home page Git Product logo

heap-dynamic-stack's Introduction

Исходный код для лабораторной работы.
vars.cpp
arrays.cpp
struct.cpp

Вывод для системы Linux первой программы:
Global address: 0x404198
Local address: 0x7ffd02afa6c8
Dynamic address: 0x59ce70

Вывод для системы Linux второй программы:
Static 1 dim:
0x7ffe0633f3d0
0x7ffe0633f3d4
0x7ffe0633f3d8

Dynamic 1 dim:
0x1815e70
0x1815e74
0x1815e78

Static 2 dim:
0x7ffe0633f3a0
0x7ffe0633f3a4
0x7ffe0633f3a8
0x7ffe0633f3ac
0x7ffe0633f3b0
0x7ffe0633f3b4
0x7ffe0633f3b8
0x7ffe0633f3bc
0x7ffe0633f3c0

Dynamic 2 dim:
0x1815eb0
0x1815eb4
0x1815eb8
0x1815ed0
0x1815ed4
0x1815ed8
0x1815ef0
0x1815ef4
0x1815ef8

Вывод для системы Linux третьей программы:
Struct with default alignment:
Location:
0x7ffe59f226c0
0x7ffe59f226c4
0x7ffe59f226c8

Size of structure from sum of fields: 14
Size of structure from 'sizeof': 16

Struct with no alignment (one byte)
Location:
0x7ffe59f226e0
0x7ffe59f226e4
0x7ffe59f226e6

Size of structure from sum of fields: 14
Size of structure from 'sizeof': 14

Struct with random alignment BY MY HANDS):
Location:
0x7ffe59f226e0
0x7ffe59f226e8
0x7ffe59f226f0

Size of structure from sum of fields: 11
Size of structure from 'sizeof': 24

Struct with alignment by hands:
Location:
0x7ffe59f226c8
0x7ffe59f226c0
0x7ffe59f226ca

Size of structure from sum of fields: 11
Size of structure from 'sizeof': 16

heap-dynamic-stack's People

Contributors

notkok avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.