Compiler Design

2536 days ago, 865 views
PowerPoint PPT Presentation
Compiler Configuration. Venture PRESENTATION : COMPILER FOR Target C Group 10. Target C: A Presentation. The Target C dialect is a strict superset of the standard C dialect, intended to give C full question situated programming abilities.

Presentation Transcript

Slide 1


Slide 2

Objective C: An Introduction The Objective-C dialect is a strict superset of the standard C dialect, intended to give C full protest arranged programming capacities. The Objective-C model of question arranged writing computer programs depends on sending messages to sovereign articles. A protest with strategy "method" is said to "respond" to the message technique. [ obj method:parameter ]; Objective-C messages don't have to execute on the grounds that they are progressively bound.

Slide 3

Non-C highlights : Interfaces and executions Objective-C requires the interface and usage of a class be in independently announced code squares. The interface is placed in a header document The real code is composed in @implementation square. Instantiation This is finished by first designating the memory for another protest and afterward by instating it. MyObject * o = [[ MyObject alloc ] init] Protocols An casual convention is a rundown of techniques which a class can execute.

Slide 4

Dynamic writing A fascinating element of the dialect is that a protest can be communicated something specific that is not determined in its interface. Sending If message is sent to a protest which won't not react to it, it advances the message on to a question which can react to it. Posturing Objective-C allows a class to posture for another class inside a program, i.e., all messages of the objective class are gotten by the posturing class. Classification Categories allow the software engineer to add techniques to a class and supplant a current strategy.

Slide 5

History & Evolution Hybrid amongst Smalltalk and C. Made essentially by Brad Cox and Tom Love who started by changing the C compiler to include a portion of the abilities of Smalltalk. The GNU Objective-C runtime which has been being used since 1993 is the one created by Kresten Krab Thorup. The majority of Apple's available day Cocoa API depends on OpenStep interface protests, and is the most huge Objective-C condition being utilized for dynamic improvement.

Slide 6

Why superior to others? Objective-C messages don't have to execute in light of the fact that they are powerfully bound. On the off chance that message is not actualized the code will even now assemble and run, not at all like statically wrote dialects like C++. Designating strategies to different items and remote conjuring can be effortlessly executed utilizing classes and message sending. Rather than utilizing an Enumerator question repeat through an accumulation, Objective-C offers the quick specification linguistic structure. Since ObjC is C in addition to Objects, it's exceptionally good with C code bases.

Slide 7

Categories permit expansion of strategies to classes after the class' underlying definition. We can rethink a current technique's execution. Objective-C has a dynamic run-time. It permits making messages at run-time, progressively making classes, powerfully adding strategies to existing classes, changing strategy executions et cetera. ObjC has genuine, quick, runtime message sending. #import adds a document just in the event that it has not been as of now attached, not at all like #include.

Slide 8

Progress till now Lexical Analysis : Completed Tool utilized : Lex Syntax Analysis : Almost Completed Tool utilized : Yacc Symbol Table : Hash table of a question with qualities - lexeme and token. The hash work we picked is: length(lexeme)%5 All the identifiers go in the SymbolTable and an identifier is embedded just in the event that it is not officially exhibit in it. We at first chose that C++ as our usage dialect however now need to change over our Symbol Table execution to C.

Slide 9

End User summons Objective-C code is to composed in a .m document. The compiler can be conjured by the accompanying charges: $dawk –h? –d? –p? (- o <target>) <src.m >

Slide 10

Future Plans We have practically finished parser and testing would be finished before the due date on 28 th . We have not yet avoided any dialect highlight and we are meaning to keep it that path till the end. We are not all that enthusiastic about the streamlining. Also, we have a solid conviction that adhering to future due dates would guarantee fruitful finish of our venture.

Slide 11

Thank You Harshal A. Waghmare Jeet Kumar Nandan Dubey Vishal Agrawal