Thread: .l file stands for

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    .l file stands for

    I found a open source project written in C.

    I found two files - abc.c and abc.l. Both these two files have same contents.

    I don't know why abc.l file stand for.
    If I want to change the source code which file do I need to change - .c or .l?

    Anyone please help.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    If they're the same file, then you want to work with the abc.c file.

    Maybe the .l file was some kind of a backup file.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    66
    .l is known for linker directive files

  4. #4
    Registered User
    Join Date
    Feb 2010
    Posts
    37
    It may be a linker file. It is better to do your work around in the .c file

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,663
    > I found a open source project written in C.
    No doubt.
    And I bet if you told us the URL where you got it from, then we could probably go look for ourselves and actually tell you the answer you seek.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    The ".l" maybe a listing file; a linker directive file will contain only pseudo-ops no program instructions.
    As Salem noted if you provide more details someone can find that information for you.

  7. #7
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    .l files could be input for lex
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  8. #8
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Clearly, it stands for laserlight

    Have you considered just asking the project's developers? For all we know this may have been a mistake or a personal convention for backup files.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  4. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM