Logo CodeXlog
  • Home
  • About
  • Recent Posts
  • 게시글
  • Tags
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • 태그
  • Airline
  • Algorithms
  • Ansible
  • Arithmetic
  • Array
  • Autojump
  • AWS
  • Backjoon
  • Bublesort
  • C
  • CentOS
  • Deep-Learning
  • Django
  • Embeded
  • Embeded-System
  • Git
  • Git Bash
  • Github
  • GitLab
  • Hugo
  • Hugo-Toha Theme
  • Hydejack Theme
  • IaC
  • Jekyll
  • Level 17
  • Level 4
  • Loop
  • MacOS
  • Manual
  • Math
  • MinGW
  • Online-Judge
  • OpenCV
  • OS
  • Pattern
  • Prime Number
  • Programming Tips
  • Python
  • RHEL
  • Scanf
  • Sort
  • String
  • Study
  • System-Programming
  • Tensor-Flow
  • Terrafrom
  • Theory
  • Ubuntu
  • Upgrade
  • Vim
  • Window
  • 비교분석
  • 초기설정
Hero Image
강제 캐스팅에 의한 1byte 단위 접근 방법

1Byte access 강제 캐스팅에 의한 1byte 단위 접근 방법 다음과 같이 출력되도록 코드를 짜시오. temp : 0x12345678 temp : 0x78563412 // 강제 캐스팅에 의한 1byte 접근법 #include <stdio.h> int main(){ char *s; char swap_char; int temp=0x12345678; s=(char*)&temp; //4byte의 값을 1byte씩 접근 // a=(char)&temp; 변수 자료형의 형변환 printf("temp : 0x%x\n",temp ); swap_char=*s; *s=*(s+3); *(s+3)=swap_char; swap_char=*(s+1); *(s+1)=*(s+2); *(s+2)=swap_char; printf("temp : 0x%x\n",temp ); } 이런 방법론은 Endian 문제에 적용시킬수 있다. Little Endian 과 Big Endian 과의 데이터 불일치가

  • Study
  • C
  • Theory
  • Embeded
2018년 6월 15일 금요일 | 5
Hero Image
C언어 스터디

C언어 프로그램이란? 컴퓨터에서 실행될때 특정 작업을 수행 하는 일련의 명령어들의 모음이다. 소프트웨어 공학 요구사항 분석 자료형 정의 등등 Flow chart 설계 및 구현(pseudo code) 코드 구현 실행 테스트 유지보수 CPU 구조 Control unit<->ALU<->Processor resister(R1,R2,R3…) 위의 3가지 장치들이 Internal bus로 연결되어 통신한다. ALU(Arithmetic logic unit ) 산술 논리 장치 : 실질적으로 산술, 논리 계산을 수행함. Resister CPU의 자체적인 메모리저장 기능. Memory buffer register(MBR) ​ I/O로 보내지거나 메모리에 저장될 Word 혹은 I/O나 메모리로 부터 Word를 받는 것.

  • Study
  • C
  • Theory
2018년 6월 11일 월요일 | 21
Hero Image
Python 기초

파이썬 basic 플랫폼 독립적이며 인터프리터식, 객체지향적, 동적 타이핑(Dynamically typed) 대화형 언어 이다. 파이썬이 유지보수가 쉬운 이유는 가독성이 좋아서 이다. 파이썬으로 프로그래밍시 주의할 점은 Name Space 이다. 이미 존재하는 라이브러리와 같은 이름으로 저장시 overiiding의 문제가 발생할수도 있다. 다중 패러다임(함수형, 명령형, 객체지향- 클래스 기반) 프로그래밍 언어 이다. 언어의 종류 C - python Java - jython .net - Iron python python - pypi(속도 향상을 위해 파이썬 기반으로 제작) 주의 사항 Name space 주의

  • Study
  • Python
  • Theory
2018년 6월 11일 월요일 | 4
바로가기
  • About
  • Recent Posts
  • Tags
Contact me:
  • codex.devlab@gmail.com
  • ehdwn1991
  • Codex

책임 고지: This theme is under MIT license. So, you can use it for non-commercial, commercial, or private uses. You can modify or distribute the theme without requiring any permission from the theme author. However, the theme author does not provide any warranty or takes any liability for any issue with the theme.