SlideShare a Scribd company logo
Code Porting
    Tips & Tricks
-
?   ?
              •



              •
    ...       •
          –
          –
          –
?   ?
              •
              •
          –
              •
    ...       •
          –
          –
          –
Porting = =

              •
–
        "   "       •



    ?               •
                –
                –
                –
?
    Refactoring ==       •
                     –


                         •
5         – 1996




...       ...
–   •
– Design /   •
–   /   •
–   •
–   •
...
                                    ?"       "        •

                                   int == word ?



                            ...                       •

8, 9, 12, 16, 18, 24, 32, 36, 39, 40, 48, 60, 64, …
...
bit fields within a struct –   -   •
0010 0000 kinds of people in the world
Those that understand the difference between Big
Endian and Little Endian, and those that do not
0010 0000 kinds of people in the world
Those that understand the difference between Big
Endian and Little Endian, and those that do not

                                        -
                             "On Holy Wars and a Plea for Peace"
...
•   Casting between typesexpressionspointers
•   Alignment & packing
•   Structs
•   Union
•   Bitfields
•   Bit shifting operations
•   Magic numbers & other system constants
...
• CPU optimizations
• Inline assembly calls
• Binary data exchange



                          –   •
                    -
•   •
•   –       •

            •
Portable Code –    -
  ?     -              •




              ==
?        ?       ?
    ?                               •
               www.klocwork.com •
                 info@trinity.co.il •

         !

    Gil @ Trinity.co.il

More Related Content

Viewers also liked

סדנה ציור משפחתית
סדנה ציור משפחתיתסדנה ציור משפחתית
סדנה ציור משפחתית
ayelet yorav
 
Examining the Discussion Quality
Examining the Discussion Quality Examining the Discussion Quality
Examining the Discussion Quality beitissienew
 
כתבה מגלובס עמוד 2
כתבה מגלובס עמוד 2כתבה מגלובס עמוד 2
כתבה מגלובס עמוד 2tama111
 
אורות אדומים לתיאום מכרזים בישראל
אורות אדומים לתיאום מכרזים בישראלאורות אדומים לתיאום מכרזים בישראל
אורות אדומים לתיאום מכרזים בישראל
לשכת המבקרים הפנימיים ישראל
 
מצגת לנושא משפט מפתח ורעיון מרכזי
מצגת לנושא משפט מפתח ורעיון מרכזימצגת לנושא משפט מפתח ורעיון מרכזי
מצגת לנושא משפט מפתח ורעיון מרכזיinbalgal
 
הקשחת תשתיות לאומיות - מניעה וניהול הגנה כנגד מתקפות סייבר
הקשחת תשתיות לאומיות - מניעה וניהול הגנה כנגד מתקפות סייברהקשחת תשתיות לאומיות - מניעה וניהול הגנה כנגד מתקפות סייבר
הקשחת תשתיות לאומיות - מניעה וניהול הגנה כנגד מתקפות סייבר
TrinitySB
 
Old-New Imagination: Imagination in the Age of Algorithms
Old-New Imagination: Imagination in the Age of AlgorithmsOld-New Imagination: Imagination in the Age of Algorithms
Old-New Imagination: Imagination in the Age of Algorithms
Romi Mikulinsky
 
Regroupement ras jenny
Regroupement ras jennyRegroupement ras jenny
Regroupement ras jennyppaquin
 
松果開花
松果開花松果開花
松果開花Jaing Lai
 
School archives in The Central Archives for the History of the Jewish People ...
School archives in The Central Archives for the History of the Jewish People ...School archives in The Central Archives for the History of the Jewish People ...
School archives in The Central Archives for the History of the Jewish People ...
National Library of Israel
 
העתיד כבר כאן - הנגשת מידע
העתיד כבר כאן - הנגשת מידע העתיד כבר כאן - הנגשת מידע
העתיד כבר כאן - הנגשת מידע
Dr. Anat Klumel
 
הטמעה וניהול נכון ובטוח של קוד פתוח בארגון - טריניטי
הטמעה וניהול נכון ובטוח של קוד פתוח בארגון - טריניטיהטמעה וניהול נכון ובטוח של קוד פתוח בארגון - טריניטי
הטמעה וניהול נכון ובטוח של קוד פתוח בארגון - טריניטי
TrinitySB
 
מאמר בנושא חוקר פרטי
מאמר בנושא חוקר פרטימאמר בנושא חוקר פרטי
מאמר בנושא חוקר פרטי
daganinv
 
Synthesis and screening of some new fluorinated
Synthesis and screening of some new fluorinatedSynthesis and screening of some new fluorinated
Synthesis and screening of some new fluorinatedAdel Abdelrahim, PhD
 
מערכת לניהול אנרגיה- Power Monitoring Expert
מערכת לניהול אנרגיה- Power Monitoring Expertמערכת לניהול אנרגיה- Power Monitoring Expert
מערכת לניהול אנרגיה- Power Monitoring ExpertIra Gutman
 

Viewers also liked (18)

סדנה ציור משפחתית
סדנה ציור משפחתיתסדנה ציור משפחתית
סדנה ציור משפחתית
 
Examining the Discussion Quality
Examining the Discussion Quality Examining the Discussion Quality
Examining the Discussion Quality
 
כתבה מגלובס עמוד 2
כתבה מגלובס עמוד 2כתבה מגלובס עמוד 2
כתבה מגלובס עמוד 2
 
תמורות בביקורת הפנימית
תמורות בביקורת הפנימית תמורות בביקורת הפנימית
תמורות בביקורת הפנימית
 
לנבר רזומה 2015
לנבר רזומה 2015לנבר רזומה 2015
לנבר רזומה 2015
 
אורות אדומים לתיאום מכרזים בישראל
אורות אדומים לתיאום מכרזים בישראלאורות אדומים לתיאום מכרזים בישראל
אורות אדומים לתיאום מכרזים בישראל
 
מצגת לנושא משפט מפתח ורעיון מרכזי
מצגת לנושא משפט מפתח ורעיון מרכזימצגת לנושא משפט מפתח ורעיון מרכזי
מצגת לנושא משפט מפתח ורעיון מרכזי
 
הקשחת תשתיות לאומיות - מניעה וניהול הגנה כנגד מתקפות סייבר
הקשחת תשתיות לאומיות - מניעה וניהול הגנה כנגד מתקפות סייברהקשחת תשתיות לאומיות - מניעה וניהול הגנה כנגד מתקפות סייבר
הקשחת תשתיות לאומיות - מניעה וניהול הגנה כנגד מתקפות סייבר
 
MiceHome
MiceHomeMiceHome
MiceHome
 
Old-New Imagination: Imagination in the Age of Algorithms
Old-New Imagination: Imagination in the Age of AlgorithmsOld-New Imagination: Imagination in the Age of Algorithms
Old-New Imagination: Imagination in the Age of Algorithms
 
Regroupement ras jenny
Regroupement ras jennyRegroupement ras jenny
Regroupement ras jenny
 
松果開花
松果開花松果開花
松果開花
 
School archives in The Central Archives for the History of the Jewish People ...
School archives in The Central Archives for the History of the Jewish People ...School archives in The Central Archives for the History of the Jewish People ...
School archives in The Central Archives for the History of the Jewish People ...
 
העתיד כבר כאן - הנגשת מידע
העתיד כבר כאן - הנגשת מידע העתיד כבר כאן - הנגשת מידע
העתיד כבר כאן - הנגשת מידע
 
הטמעה וניהול נכון ובטוח של קוד פתוח בארגון - טריניטי
הטמעה וניהול נכון ובטוח של קוד פתוח בארגון - טריניטיהטמעה וניהול נכון ובטוח של קוד פתוח בארגון - טריניטי
הטמעה וניהול נכון ובטוח של קוד פתוח בארגון - טריניטי
 
מאמר בנושא חוקר פרטי
מאמר בנושא חוקר פרטימאמר בנושא חוקר פרטי
מאמר בנושא חוקר פרטי
 
Synthesis and screening of some new fluorinated
Synthesis and screening of some new fluorinatedSynthesis and screening of some new fluorinated
Synthesis and screening of some new fluorinated
 
מערכת לניהול אנרגיה- Power Monitoring Expert
מערכת לניהול אנרגיה- Power Monitoring Expertמערכת לניהול אנרגיה- Power Monitoring Expert
מערכת לניהול אנרגיה- Power Monitoring Expert
 

Similar to Trinity - code porting tips & tricks

งานทันตสุขภาพในผู้พิการ รพ.วัดจันทร์ เชียงใหม่
งานทันตสุขภาพในผู้พิการ รพ.วัดจันทร์ เชียงใหม่งานทันตสุขภาพในผู้พิการ รพ.วัดจันทร์ เชียงใหม่
งานทันตสุขภาพในผู้พิการ รพ.วัดจันทร์ เชียงใหม่Nithimar Or
 
Leadership Guide, 초보팀장을 위한 리더십 가이드
Leadership Guide, 초보팀장을 위한 리더십 가이드Leadership Guide, 초보팀장을 위한 리더십 가이드
Leadership Guide, 초보팀장을 위한 리더십 가이드
Jinho Jung
 
SQL Explore 2012 - Aviad Deri: Spatial
SQL Explore 2012 - Aviad Deri: SpatialSQL Explore 2012 - Aviad Deri: Spatial
SQL Explore 2012 - Aviad Deri: Spatialsqlserver.co.il
 
エンジニアのためのUX入門
エンジニアのためのUX入門エンジニアのためのUX入門
エンジニアのためのUX入門
Kazuyuki CHINDA
 
PersonAll Presentation commerciale FR
PersonAll Presentation commerciale FRPersonAll Presentation commerciale FR
PersonAll Presentation commerciale FRPersonall SAS
 
Sergata Ltd. - Innovative Software Development
Sergata Ltd. - Innovative Software DevelopmentSergata Ltd. - Innovative Software Development
Sergata Ltd. - Innovative Software Development
Tsvika Kleinman
 
Feature Engineering in H2O Driverless AI - Dmitry Larko - H2O AI World London...
Feature Engineering in H2O Driverless AI - Dmitry Larko - H2O AI World London...Feature Engineering in H2O Driverless AI - Dmitry Larko - H2O AI World London...
Feature Engineering in H2O Driverless AI - Dmitry Larko - H2O AI World London...
Sri Ambati
 
introduction to computer in arabic class 1
introduction to computer in arabic class 1introduction to computer in arabic class 1
introduction to computer in arabic class 1
Dr. Mazin Mohamed alkathiri
 
Mining the Geo Needles in the Social Haystack
Mining the Geo Needles in the Social HaystackMining the Geo Needles in the Social Haystack
Mining the Geo Needles in the Social Haystack
Matthew Russell
 
Magenta BTL
Magenta BTLMagenta BTL
Magenta BTL
AllAdvertising.ru
 
Cross-Platform Cross-Reality Talk Deck
Cross-Platform Cross-Reality Talk DeckCross-Platform Cross-Reality Talk Deck
Cross-Platform Cross-Reality Talk Deck
Convergence of 4 Dimensions LLC
 
플렉스팀 프론트엔드 기술 스택의 이해: `lint`, `build`, `run`
플렉스팀 프론트엔드 기술 스택의 이해: `lint`, `build`, `run`플렉스팀 프론트엔드 기술 스택의 이해: `lint`, `build`, `run`
플렉스팀 프론트엔드 기술 스택의 이해: `lint`, `build`, `run`
Heejong Ahn
 
Avatara: OLAP for Web-scale Analytics Products
Avatara: OLAP for Web-scale Analytics Products Avatara: OLAP for Web-scale Analytics Products
Avatara: OLAP for Web-scale Analytics Products
Lili Wu
 
Onion and Swiss Cheese: Security Revisited
Onion and Swiss Cheese: Security RevisitedOnion and Swiss Cheese: Security Revisited
Onion and Swiss Cheese: Security Revisited
ESUG
 
P01 introduction cvpr2012 deep learning methods for vision
P01 introduction cvpr2012 deep learning methods for visionP01 introduction cvpr2012 deep learning methods for vision
P01 introduction cvpr2012 deep learning methods for visionzukun
 

Similar to Trinity - code porting tips & tricks (17)

الإبداع الإدارى
الإبداع الإدارىالإبداع الإدارى
الإبداع الإدارى
 
งานทันตสุขภาพในผู้พิการ รพ.วัดจันทร์ เชียงใหม่
งานทันตสุขภาพในผู้พิการ รพ.วัดจันทร์ เชียงใหม่งานทันตสุขภาพในผู้พิการ รพ.วัดจันทร์ เชียงใหม่
งานทันตสุขภาพในผู้พิการ รพ.วัดจันทร์ เชียงใหม่
 
Office2010
Office2010Office2010
Office2010
 
Leadership Guide, 초보팀장을 위한 리더십 가이드
Leadership Guide, 초보팀장을 위한 리더십 가이드Leadership Guide, 초보팀장을 위한 리더십 가이드
Leadership Guide, 초보팀장을 위한 리더십 가이드
 
SQL Explore 2012 - Aviad Deri: Spatial
SQL Explore 2012 - Aviad Deri: SpatialSQL Explore 2012 - Aviad Deri: Spatial
SQL Explore 2012 - Aviad Deri: Spatial
 
エンジニアのためのUX入門
エンジニアのためのUX入門エンジニアのためのUX入門
エンジニアのためのUX入門
 
PersonAll Presentation commerciale FR
PersonAll Presentation commerciale FRPersonAll Presentation commerciale FR
PersonAll Presentation commerciale FR
 
Sergata Ltd. - Innovative Software Development
Sergata Ltd. - Innovative Software DevelopmentSergata Ltd. - Innovative Software Development
Sergata Ltd. - Innovative Software Development
 
Feature Engineering in H2O Driverless AI - Dmitry Larko - H2O AI World London...
Feature Engineering in H2O Driverless AI - Dmitry Larko - H2O AI World London...Feature Engineering in H2O Driverless AI - Dmitry Larko - H2O AI World London...
Feature Engineering in H2O Driverless AI - Dmitry Larko - H2O AI World London...
 
introduction to computer in arabic class 1
introduction to computer in arabic class 1introduction to computer in arabic class 1
introduction to computer in arabic class 1
 
Mining the Geo Needles in the Social Haystack
Mining the Geo Needles in the Social HaystackMining the Geo Needles in the Social Haystack
Mining the Geo Needles in the Social Haystack
 
Magenta BTL
Magenta BTLMagenta BTL
Magenta BTL
 
Cross-Platform Cross-Reality Talk Deck
Cross-Platform Cross-Reality Talk DeckCross-Platform Cross-Reality Talk Deck
Cross-Platform Cross-Reality Talk Deck
 
플렉스팀 프론트엔드 기술 스택의 이해: `lint`, `build`, `run`
플렉스팀 프론트엔드 기술 스택의 이해: `lint`, `build`, `run`플렉스팀 프론트엔드 기술 스택의 이해: `lint`, `build`, `run`
플렉스팀 프론트엔드 기술 스택의 이해: `lint`, `build`, `run`
 
Avatara: OLAP for Web-scale Analytics Products
Avatara: OLAP for Web-scale Analytics Products Avatara: OLAP for Web-scale Analytics Products
Avatara: OLAP for Web-scale Analytics Products
 
Onion and Swiss Cheese: Security Revisited
Onion and Swiss Cheese: Security RevisitedOnion and Swiss Cheese: Security Revisited
Onion and Swiss Cheese: Security Revisited
 
P01 introduction cvpr2012 deep learning methods for vision
P01 introduction cvpr2012 deep learning methods for visionP01 introduction cvpr2012 deep learning methods for vision
P01 introduction cvpr2012 deep learning methods for vision
 

Recently uploaded

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 

Recently uploaded (20)

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 

Trinity - code porting tips & tricks

  • 1. Code Porting Tips & Tricks -
  • 2. ? ? • • ... • – – –
  • 3. ? ? • • – • ... • – – –
  • 5. " " • ? • – – –
  • 6. ? Refactoring == • – •
  • 7. 5 – 1996 ... ...
  • 8.
  • 10. / •
  • 11.
  • 12.
  • 13. ... ?" " • int == word ? ... • 8, 9, 12, 16, 18, 24, 32, 36, 39, 40, 48, 60, 64, …
  • 14. ... bit fields within a struct – - •
  • 15. 0010 0000 kinds of people in the world Those that understand the difference between Big Endian and Little Endian, and those that do not
  • 16. 0010 0000 kinds of people in the world Those that understand the difference between Big Endian and Little Endian, and those that do not - "On Holy Wars and a Plea for Peace"
  • 17. ... • Casting between typesexpressionspointers • Alignment & packing • Structs • Union • Bitfields • Bit shifting operations • Magic numbers & other system constants
  • 18. ... • CPU optimizations • Inline assembly calls • Binary data exchange – • -
  • 19. • • – • •
  • 20. Portable Code – - ? - • ==
  • 21. ? ? ? ? • www.klocwork.com • info@trinity.co.il • ! Gil @ Trinity.co.il