본문 바로가기

IT 기술/개발환경_유틸 관련 팁26

[gcc] floating point ABI 에 대해서 gcc man page 를 살펴보면 ARM 옵션중에 다음과 같은 내용이 있다. (arm 옵션) -mfloat-abi=name Specifies which floating-point ABI to use. Permissible values are: soft, softfp and hard. Specifying soft causes GCC to generate output containing library calls for floating-point operations. softfp allows the generation of code using hardware floating-point instructions, but still uses the soft-float calling conventions. hard.. 2012. 11. 6.
[git] git checkout 에서 '--' 의 의미 git help checkout 을 해보면 다음과 같은 SYNOPSIS 가 있다. git checkout [-q] [-f] [-m] [ ] git checkout [-q] [-f] [-m] [-b ] [] git checkout [-f|--ours|--theirs|-m|--conflict=] [] [--] ... git checkout --patch [] [--] [...] 여기서 [--] 은 무엇을 의미할까? blog.avirtualhome.com/compile-mainline-kernel-ubuntu/ 의 creating a branch 섹션을 보면 다음과 같은 명령을 사용한다. git checkout -b i7 v3.3 -- 위에서 -- 는 무엇을 의미할까?? 구글링을 통해서 다음과 같은 사이트를 .. 2012. 11. 6.
git rebase 시 conflict 발생 git rebase 를 수행하는데 conflict 가 발생한 경우에 해결 하는 절차를 적어본다. 우선 S project 라는 가상의 프로젝트에 A~J 까지 10개의 commit 이 있는 master branch 가 있다고 가정한다. E 에 해당하는 commit 소스를 가지고 새로운 new_branch 이라는 local branch 를 만들어서 또다른 commit 작업을 수행했다고 가정한다. 새로 수행된 commit 은 K, L, M 이라고 하자 그럼 commit 된 내용을 그림으로 그려보면 아래와 같다. K--L--M : new_branch / A--B--C--D--E--F--G--H--I--J : master 이런 상황에서 G commit 시점으로 나의 branch 를 rebase 하고 싶은 경우, 즉.. 2012. 1. 19.
Alignment Error 와 메모리/구조체 네이버 블로그 2006/09/26 작성내용 옮김. http://blog.naver.com/pinocc/120029339528 Alignment error 는 Bus Error signal 에 대한 반응으로 발생한다. bus error 신호는 multi-byte 데이터가 적절한 메모리 boundary 에서 접근되지 않을 때 발생한다. 이런 플랫폼에서 integer / long 타입의 데이터들은 cpu 가 데이터를 가져오는 방식과, 해당 플랫폼의 cpu instruction set 에서 어떻게 최적화를 하냐에 따라서 특정 byte boundary 에 정렬되어야 한다. 예를 들면 4byte long 데이터는 4의 배수에 정렬된 주소에 접근해야 하고, 2byte 는 2의 배수 주소에서 접근해야 한다. 인텔 cp.. 2012. 1. 6.