473,805 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tools for viewing 'translation units'?

Are there any tools (preferably available for linux) which will display the
concatanated source code representative of an entire translation unit?
Something that would simply provide a graphical representation of the
various files and how they connect would be of interest as well.
--
STH
Hatton's Law: "There is only One inviolable Law"
KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com
Mozilla: http://www.mozilla.org
Jul 22 '05 #1
3 1311
Steven T. Hatton wrote:
Are there any tools (preferably available for linux) which will display the
concatanated source code representative of an entire translation unit?
Something that would simply provide a graphical representation of the
various files and how they connect would be of interest as well.


Though it is not necessary according to the standard, most compilers
provide a way to see the result of preprocessing.

<OT>
In the case of GCC, use `cpp -E <filename>'.
</OT>

HTH,
--ag

--
Artie Gold -- Austin, Texas
Jul 22 '05 #2
Artie Gold <ar*******@aust in.rr.com> wrote:
<OT>
In the case of GCC, use `cpp -E <filename>'.
</OT>


Actually, all C++ compilers I used so far support the -E flag: just add it
to the normal invokation of the C++ compiler. There is no need to use cpp
directly. Of course, this is nothing the standard prescribes...
--
<mailto:di***** ******@yahoo.co m> <http://www.dietmar-kuehl.de/>
<http://www.contendix.c om> - Software Development & Consulting
Jul 22 '05 #3
On Sun, 09 May 2004 21:10:40 -0400, Steven T. Hatton wrote:
Are there any tools (preferably available for linux) which will display the
concatanated source code representative of an entire translation unit?
Something that would simply provide a graphical representation of the
various files and how they connect would be of interest as well.


After making all those suggestions about how C++ should be you would have
us believe you haven't read the documentation for you compiler tools?

--
NPV

"the large print giveth, and the small print taketh away"
Tom Waits - Step right up

Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
3050
by: murali | last post by:
Hello everyone, I used absolute positioning with div tag in my website. The page looks cool as long as someone doesn't try to zoom in by increasing the text size (ctrl++ or thru changing font size in browser settings). When someone does that, the layers seem to overlap and the layer with a greater z value pops in front and the other layers are pushed back. The most obvious solution will be to prevent the user from increasing the text...
2
1658
by: John Carson | last post by:
One routinely hears that the order of initialisation of objects with static storage duration in different translation units cannot in general be guaranteed. I have a question about one way to influence the order of initialisation. Suppose that class A contains both a static object and a static member function that refers to that static object in some way (by, e.g., printing out its value or returning its address). 1. Am I right to...
7
5127
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting normal functions in header files results in multiple definition errors even when include guards are used. -- STH Hatton's Law: "There is only One inviolable Law" KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com Mozilla:...
1
1451
by: Gary | last post by:
Is it possible to have a "floating" area designated to show an enlarged image of a thumbnail? Right now I'm using a script to enlarge the image, where it's at, onmouseover, but when it enlarges, it re-draws the rest of the page below it. Some times it enlarges in the area below the current image which makes the mouse cursor no longer over the image so the onmouseout (which reverts the image back to the original thumbnail size) occurs...
1
1930
by: dilabox | last post by:
Hello, I have overloaded the global new, delete, new and delete operators inside a "static library". The library uses private memory allocation routines that must not be accessible from other translation units. Other translation units are therefore expected to define and use their own new/delete operators. When I link to this library the global new/delete operators conflict, and although no linker warnings are generated, the result is...
9
1935
by: Spiros Bousbouras | last post by:
Let's say I have a global variable int var which I want to be known to translation units T1 and T2, I want T1 to be able to read its value and modify it and T2 to be able to read its value but not modify it. Would it work if I declare it inside T1 as "extern int var" and inside T2 as "extern const int var" ?
4
1416
by: aaragon | last post by:
Hello everyone, I have this problem that is driving me crazy! I have a typedef for a singleton object in a file "fileA.h", then I try to use that object in "fileB.h" and then the compiler says that the object has not been declared! It doesn't matter what I do, the problem won't go away. I #include the header file where the typedef is declared, I tried forward declaration, it just won't go away. The typedef in filaA.h looks like this:
4
1894
by: Tomás Ó hÉilidhe | last post by:
I have a translation unit which defines a global object: BEGIN "yellow.c" int i = 7; END I want this object to be accessible from other translation units, so I give it external linkage. However I want it to be read-only in other translation
4
1595
by: gw7rib | last post by:
If a class has more than one member function, is it possible for the code for one to be in one translation unit (ie file) and the code for another to be in a different translation unit? I would have thought so, yet I still have a nagging doubt about it. If it is allowed, is it a good idea? My problem is that I have a class which does far, far too much, but I haven't managed to break its functions down into several self- contained...
0
10607
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10359
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10104
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9182
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7645
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4317
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3843
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.