Git Product home page Git Product logo

Comments (4)

haozewu avatar haozewu commented on August 25, 2024
  1. makefile 文件是有用的,task 中实际上是运行了
{
            "label": "compile",
            "type": "shell",
            "command": "mingw32-make",
            "args": [
                "target=${fileBasenameNoExtension}"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
 }

也就是运行了 makefile 中的步骤。
2. publish 批处理文件已经被删除了,自从在 rm 这些 linux 指令可以在 Windows 中使用的时候。请直接使用 【运行任务】中的【clean】来删除临时文件。如果你的 Windows 系统不能使用 rm 等指令,可以在应用商店安装 WSL 。

from c51.

isharrrry avatar isharrrry commented on August 25, 2024
  1. makefile 文件是有用的,task 中实际上是运行了
{
            "label": "compile",
            "type": "shell",
            "command": "mingw32-make",
            "args": [
                "target=${fileBasenameNoExtension}"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
 }

也就是运行了 makefile 中的步骤。
2. publish 批处理文件已经被删除了,自从在 rm 这些 linux 指令可以在 Windows 中使用的时候。请直接使用 【运行任务】中的【clean】来删除临时文件。如果你的 Windows 系统不能使用 rm 等指令,可以在应用商店安装 WSL 。

image

根据官方文档,编译不含main函数的c可以得到rel文件,然后可以最终实现多文件生成ihx文件,是否考虑加入这个功能实现不仅仅是单文件编译呢?
另外我尝试在task.json实现脱离makefile编译是可行的,是否可以考虑只用task.json来取代minggw的make程序的功能,让编译流程更简单?

            "label": "Build 编译",
            "type": "shell",
            "command": "sdcc",
            "args": [
                "-c",
                "${relativeFile}",
                "-o",
                "${fileDirname}\\..\\tmp\\"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []

from c51.

isharrrry avatar isharrrry commented on August 25, 2024

image

from c51.

haozewu avatar haozewu commented on August 25, 2024

只写task作为单文件编译是可以的。我当时是想要做多文件编译所以写makefile,后来发现我没有这个实际需求,你如果需要编译多文件,可以改改makefile。

from c51.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.