473,395 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Compiler Options(cl.exe)

Given a C file along with the dependent .h files, I need to get a list
of global, static and extern variables along with their datatypes.

Help me by informing if any such utility or command is available.

I was exploring cl command and came across an option which lists all
the functions in the .c file along with their signatures.
Like this, is there any option available for listing the variables?
Thanks in advance,
Karthik
Nov 14 '05 #1
7 7093
Vallarasu wrote:
Given a C file along with the dependent .h files, I need to get a list
of global, static and extern variables along with their datatypes.

Help me by informing if any such utility or command is available.
Yes there is such a tool, you might want to take a look around in the net
for a tool called 'ctags' or 'etags'.
I was exploring cl command and came across an option which lists all
the functions in the .c file along with their signatures.
Like this, is there any option available for listing the variables?


cl.exe? Sounds like the C/C++ compilers Microsoft makes. In that case, try
'cl /?' to get a list of supported options.
Uli

Nov 14 '05 #2
Vallarasu wrote:

Given a C file along with the dependent .h files, I need to get a list
of global, static and extern variables along with their datatypes.

Help me by informing if any such utility or command is available.

I was exploring cl command and came across an option which lists all
the functions in the .c file along with their signatures.
Like this, is there any option available for listing the variables?


Look up a program/system called CSCOPE. It probably exists for
your system, whatever that may be. Strictly speaking, this is
off=topic in c.l.c.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #3
Vallarasu wrote:
Given a C file along with the dependent .h files, I need to get a list
of global, static and extern variables along with their datatypes.

Help me by informing if any such utility or command is available.

I was exploring cl command and came across an option which lists all
the functions in the .c file along with their signatures.
Like this, is there any option available for listing the variables?
Thanks in advance,
Karthik


You could probably use 'gid' as one of the codebase searching tool.
Other tools as other mentioned which helps are: CSCOPE, ctags, etags
which demands you build their corresponding dependancies files apriorly.

Nov 14 '05 #4
Hai Uli,

cl.exe is exactly a C/C++ compiler made by MicroSoft.

I am unable to make out which option(s) in cl command
will provide solution to my problem.
Please help.

Thanks in advance,
Karthik

Nov 14 '05 #5
cl.exe is MicroSoft's C/C++ compiler.

Is there any option(s) available in cl.exe which would provide solution
to my problem?

I am unable to find using cl /?

Please help me in this regard,
Karthik

Nov 14 '05 #6
On Tue, 07 Dec 2004 20:18:03 -0800, karthikeyarajan wrote:
Hai Uli,

cl.exe is exactly a C/C++ compiler made by MicroSoft.


Your best bet would be to ask in a newsgroup where discussion of that
specific compiler is topical. comp.lang.c is for discussing the standard C
language as it applies to all platforms, not tools for specific platforms.
Maybe a newsgroup such as comp.os.ms-windows.programmer.win32 or one of
the microsoft.public.win32.programmer.* newsgroups (maybe .tools?)

Lawrence
Nov 14 '05 #7
On 7 Dec 2004 22:02:09 -0800, ka*************@rediffmail.com
<ka*************@rediffmail.com> wrote:
cl.exe is MicroSoft's C/C++ compiler.
So ask in a Microsoft group.
Is there any option(s) available in cl.exe which would provide solution
to my problem?
No idea, ask in a Microsoft group.
I am unable to find using cl /?
Have you tried reading the manual? Or googling for it?
Please help me in this regard,


Ask in a Microsoft group, where someone might know the answer. I don't
run Microsoft compilers, nor I suspect do most of the posters here.

Chris C
Nov 14 '05 #8

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

Similar topics

1
by: Shawn Campbell | last post by:
Here's my situation! I'm automating the building of Visual Studio projects/workspaces running MSDEV from the command line like: MSDEV.EXE foobar.dsw /MAKE "Config1 - Win32 Release" /USEENV ...
4
by: Dirk Lehmann | last post by:
Hello, I like to compile an application with the dmc-compiler as !!!16-bit!!! MS-DOS application. But I don't know which compiler options I must set. Know it anyone? Helpfully are also options...
7
by: Hayato Iriumi | last post by:
I looked into CLR path, but couldn't find a compiler for C++ that comes with VS .NET 2003... I mean, C#, J#, VB .NET and even JScript compilers are in that folder. Why not C++?
2
by: Owen | last post by:
I'm using an application (a Tcl/Tk app) that uses cl.exe to compile code in the background. One very annoying feature is that a DOS box is flashed to the screen and then withdrawn during linking. ...
2
by: Stephen Luce | last post by:
I am porting an instrumentation tool from linux to Visual C/C++. We designed the tool to be a replacement for the compiler. The tool takes c/c++ files and instruments (adds code) and pipes the...
4
by: smarguer | last post by:
I am using Microsoft (R) C/C++ Optimizing Compiler Version 14.00.40121 for AMD64 to port a dll (C, C++ and fortran files) for WS2003. I am working with VS2003, with customized paths in Tools >...
1
by: Vavane | last post by:
When we update some files of our ASP.NET application on our customers servers, the vbc.exe process compiles these files "on the fly" at the first call. Right. For one server (running Windows...
7
by: FaciCAD | last post by:
In VB6, I copy *.exe file in a folder on the network and all user can run this (if they have all *.ocx files). I would like to make the same thing in VB.NET, but I can't. It gives me error wen I...
13
by: rufus | last post by:
Is there a C++ compiler for windows that can be run from the commmandline? I have only be able to find MS Visual Studio but its rather overkill since I also like to just use notepad for my code.
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.